-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into renovate/envelop-core-5.x
- Loading branch information
Showing
526 changed files
with
39,268 additions
and
33,934 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* Detects if the given file path points to a code file (as apposed to a docs | ||
* file) | ||
*/ | ||
function isCodeFile(filePath) { | ||
if (filePath.startsWith('docs')) { | ||
return false | ||
} | ||
|
||
if ( | ||
[ | ||
'CHANGELOG.md', | ||
'CODE_OF_CONDUCT.md', | ||
'CONTRIBUTING.md', | ||
'CONTRIBUTORS.md', | ||
'LICENSE', | ||
'README.md', | ||
'SECURITY.md', | ||
].includes(filePath) | ||
) { | ||
return false | ||
} | ||
|
||
return true | ||
} | ||
|
||
/** | ||
* Checks if the given array of file paths contains any files with potential | ||
* code changes | ||
*/ | ||
export function hasCodeChanges(changedFiles) { | ||
return changedFiles.some((file) => { | ||
if (isCodeFile(file)) { | ||
console.log(`Found code file: ${file}`) | ||
return true | ||
} | ||
|
||
return false | ||
}) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.