From 447b44122e70f650cd8717582f167862387efaea Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Sat, 11 Oct 2025 13:44:59 +0300 Subject: [PATCH] Fix auto-close workflow to prevent closing issues when repository OWNER performs any action (#784) * Fix auto-close workflow to prevent closing issues when OWNER performs any action Co-authored-by: amd64fox <62529699+amd64fox@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: amd64fox <62529699+amd64fox@users.noreply.github.com> --- .github/workflows/auto-closes-false-positive.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto-closes-false-positive.yml b/.github/workflows/auto-closes-false-positive.yml index aa955dc..ecf2fa5 100644 --- a/.github/workflows/auto-closes-false-positive.yml +++ b/.github/workflows/auto-closes-false-positive.yml @@ -19,11 +19,9 @@ jobs: const title = issue.title.toLowerCase(); const authorAssociation = issue.author_association; - if (context.payload.action === 'reopened') { - if (authorAssociation === 'OWNER') { - console.log('Issue #' + issue.number + ' was reopened by OWNER - will not auto-close'); - return; - } + if (authorAssociation === 'OWNER') { + console.log('Issue #' + issue.number + ' action performed by OWNER - will not auto-close'); + return; } const keywords = [