We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4dcf09 commit 6944a7dCopy full SHA for 6944a7d
1 file changed
.github/workflows/conflict-notifier.yml
@@ -81,7 +81,7 @@ jobs:
81
});
82
}
83
84
- // Check existing comments to enforce a 2-hour notification gap
+ // Check existing comments to enforce a 24-hour notification gap
85
const { data: comments } = await github.rest.issues.listComments({
86
owner: context.repo.owner,
87
repo: context.repo.repo,
@@ -101,8 +101,8 @@ jobs:
101
const lastComment = conflictComments[conflictComments.length - 1];
102
const lastCommentTime = new Date(lastComment.created_at).getTime();
103
const nowTime = new Date().getTime();
104
- const TWO_HOURS_MS = 2 * 60 * 60 * 1000;
105
- if (nowTime - lastCommentTime >= TWO_HOURS_MS) {
+ const TWENTY_FOUR_HOURS_MS = 24 * 60 * 60 * 1000;
+ if (nowTime - lastCommentTime >= TWENTY_FOUR_HOURS_MS) {
106
shouldComment = true;
107
108
0 commit comments