From 6944a7da229fca265bba3087e446e4d25ede77a0 Mon Sep 17 00:00:00 2001 From: Ayush Date: Sun, 31 May 2026 16:39:15 +0530 Subject: [PATCH] UPdated the merge conflict notifier --- .github/workflows/conflict-notifier.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/conflict-notifier.yml b/.github/workflows/conflict-notifier.yml index c51f9ead..a1386718 100644 --- a/.github/workflows/conflict-notifier.yml +++ b/.github/workflows/conflict-notifier.yml @@ -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, @@ -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; } }