Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Dec 30, 2024
1 parent cc3a7d7 commit 2607973
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/common/utils/gitUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,13 @@ export async function computeCommitsSummary(checkOnly, pullRequestInfo: any) {
const updatedFiles = await getCommitUpdatedFiles(logResult.hash);
for (const updatedFile of updatedFiles) {
if (updatedFile.endsWith(".flow-meta.xml")) {
const flowName = path.basename(updatedFile, ".flow-meta.xml");
flowList.push(flowName);
if (fs.existsSync(updatedFile)) {
const flowName = path.basename(updatedFile, ".flow-meta.xml");
flowList.push(flowName);
}
else {
uxLog(this, c.yellow(`[FlowGitDiff] Unable to find Flow file ${updatedFile} (probably has been deleted)`));
}
}
}
}
Expand Down

0 comments on commit 2607973

Please sign in to comment.