Skip to content

Commit 720dad0

Browse files
author
David Hasani
committed
exclude .yml from patch
1 parent 3dc1c35 commit 720dad0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/core/src/codewhisperer/service/transformByQ/transformationResultsViewProvider.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,9 @@ export class DiffModel {
165165
throw new Error(CodeWhispererConstants.noChangesMadeMessage)
166166
}
167167

168-
const changedFiles = parsePatch(diffContents)
168+
let changedFiles = parsePatch(diffContents)
169+
// exclude dependency_upgrade.yml from patch application
170+
changedFiles = changedFiles.filter((file) => !file.oldFileName?.includes('dependency_upgrade'))
169171
getLogger().info('CodeTransformation: parsed patch file successfully')
170172
// if doing intermediate client-side build, pathToWorkspace is the path to the unzipped project's 'sources' directory (re-using upload ZIP)
171173
// otherwise, we are at the very end of the transformation and need to copy the changed files in the project to show the diff(s)

0 commit comments

Comments
 (0)