Skip to content

Commit 0bb2548

Browse files
Update close-failed-prs.yml
2 parents 5fa9eee + ae2e40a commit 0bb2548

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/close-failed-prs.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ jobs:
5858
});
5959
6060
const meaningfulCommits = commits.filter(c => {
61-
const msg = c.commit.message.toLowerCase();
62-
const date = new Date(c.commit.committer.date); // Commit-Datum
63-
const isMergeFromMain = mainBranches.some(branch =>
64-
msg.startsWith(`merge branch '${branch}'`) ||
65-
msg.includes(`merge remote-tracking branch '${branch}'`)
61+
const msg = c.commit.message.toLowerCase();
62+
const date = new Date(c.commit.committer.date);
63+
const isMergeFromMain = mainBranches.some(branch =>
64+
msg.startsWith(`merge branch '${branch}'`) ||
65+
msg.includes(`merge remote-tracking branch '${branch}'`)
6666
);
67-
67+
6868
return !isMergeFromMain && date > cutoff;
6969
});
7070
@@ -153,4 +153,4 @@ jobs:
153153
} catch (error) {
154154
console.error(`❌ Fatal error: ${error.message}`);
155155
throw error;
156-
}
156+
}

0 commit comments

Comments
 (0)