We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d69c1db commit 5fa9eeeCopy full SHA for 5fa9eee
1 file changed
.github/workflows/close-failed-prs.yml
@@ -58,12 +58,14 @@ jobs:
58
});
59
60
const meaningfulCommits = commits.filter(c => {
61
- const msg = c.commit.message.toLowerCase();
62
- const isMergeFromMain = mainBranches.some(branch =>
63
- msg.startsWith(`merge branch '${branch}'`) ||
64
- msg.includes(`merge remote-tracking branch '${branch}'`)
+ const msg = c.commit.message.toLowerCase();
+ const date = new Date(c.commit.committer.date); // Commit-Datum
+ const isMergeFromMain = mainBranches.some(branch =>
+ msg.startsWith(`merge branch '${branch}'`) ||
65
+ msg.includes(`merge remote-tracking branch '${branch}'`)
66
);
- return !isMergeFromMain;
67
+
68
+ return !isMergeFromMain && date > cutoff;
69
70
71
// Get checks with error handling
0 commit comments