Skip to content

Commit

Permalink
Correct error messages for duplicate files
Browse files Browse the repository at this point in the history
  • Loading branch information
mokimo committed Jul 24, 2024
1 parent 0569bfd commit 1ce13c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/merge-to-stage.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ const merge = async ({ prs, type }) => {

for await (const { number, files, html_url, title } of prs) {
try {
if (files.some((file) => SEEN[file])) {
const duplicateFile = files.find((file) => SEEN[file]);
if (duplicateFile) {
commentOnPR(
`Skipped ${number}: ${title} due to file "${file}" overlap. Merging will be attempted in the next batch`,
`Skipped ${number}: "${title}" due to file "${duplicateFile}" overlap. Merging will be attempted in the next batch`,
number
);
continue;
Expand Down

0 comments on commit 1ce13c8

Please sign in to comment.