Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/conflict-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
});
}

// Check existing comments to enforce a 2-hour notification gap
// Check existing comments to enforce a 24-hour notification gap
const { data: comments } = await github.rest.issues.listComments({
owner: context.repo.owner,
repo: context.repo.repo,
Expand All @@ -101,8 +101,8 @@ jobs:
const lastComment = conflictComments[conflictComments.length - 1];
const lastCommentTime = new Date(lastComment.created_at).getTime();
const nowTime = new Date().getTime();
const TWO_HOURS_MS = 2 * 60 * 60 * 1000;
if (nowTime - lastCommentTime >= TWO_HOURS_MS) {
const TWENTY_FOUR_HOURS_MS = 24 * 60 * 60 * 1000;
if (nowTime - lastCommentTime >= TWENTY_FOUR_HOURS_MS) {
shouldComment = true;
}
}
Expand Down
Loading