File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -58,12 +58,14 @@ jobs:
5858 });
5959
6060 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}'`)
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}'`)
6566 );
66- return !isMergeFromMain;
67+
68+ return !isMergeFromMain && date > cutoff;
6769 });
6870
6971 // Get checks with error handling
You can’t perform that action at this time.
0 commit comments