-
Notifications
You must be signed in to change notification settings - Fork 752
fix(amazonq): Include mvn and gradle files in repo archives #6300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
d0ffa90
f655fe3
5a43ca9
676e8a4
e72f9fa
6bd6a5d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "type": "Bug Fix", | ||
| "description": "Include mvn and gradle files in repo archives" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -353,8 +353,19 @@ export const codefileExtensions = new Set([ | |
| // Code file names without an extension | ||
| export const codefileNames = new Set(['Dockerfile', 'Dockerfile.build']) | ||
|
|
||
| // To match gradlew, .mvn/*, etc | ||
| export const wellKnownSubnames = new Set(['gradle', 'mvn']) | ||
|
|
||
| /** Returns true if `filename` is a code file. */ | ||
| export function isCodeFile(filename: string): boolean { | ||
| const ext = path.extname(filename).toLowerCase() | ||
| return codefileExtensions.has(ext) || codefileNames.has(path.basename(filename)) | ||
| if (codefileExtensions.has(ext) || codefileNames.has(path.basename(filename))) { | ||
| return true | ||
| } | ||
| for (const subname of wellKnownSubnames) { | ||
| if (filename.includes(subname)) { | ||
|
||
| return true | ||
| } | ||
| } | ||
| return false | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.