From 33788dc47a21b85069fc182eacd98027787a7767 Mon Sep 17 00:00:00 2001 From: nourshoreibah Date: Sun, 22 Feb 2026 13:46:24 -0500 Subject: [PATCH] duplicate variable --- .github/workflows/pr-review-status.yml | 27 -------------------------- 1 file changed, 27 deletions(-) diff --git a/.github/workflows/pr-review-status.yml b/.github/workflows/pr-review-status.yml index 5e807c3..032a3a1 100644 --- a/.github/workflows/pr-review-status.yml +++ b/.github/workflows/pr-review-status.yml @@ -254,33 +254,6 @@ jobs: console.log(`DM'd author ${prData.author} (${authorSlackId}) — PR #${prNumber} fully approved`); } - // ── DM author when fully approved ───────────────────────────────── - const anyChangesRequested = reviewerObjs.some(r => r.status === 'changes_requested') - || (alwaysReviewerObj && alwaysReviewerObj.status === 'changes_requested'); - - if (allDone && !anyChangesRequested && prData.status === 'open' && authorSlackId) { - const dmBlocks = [ - { - type: 'header', - text: { type: 'plain_text', text: ':approved: Your PR is Fully Approved', emoji: true }, - }, - { - type: 'section', - text: { - type: 'mrkdwn', - text: `*<${prUrl}|#${prNumber} ${prTitle}>* has been approved by all reviewers and is ready to merge!`, - }, - }, - ]; - - await slackApi('chat.postMessage', { - channel: authorSlackId, - text: `PR #${prNumber} is fully approved and ready to merge!`, - blocks: dmBlocks, - }); - console.log(`DM'd author ${prData.author} (${authorSlackId}) — PR #${prNumber} fully approved`); - } - // ── Update bot state when all assigned reviewers are done ───────── if (allDone && prData.status === 'open') { prData.status = 'reviewed';