From 98961a1d36c6c87eb496cbb98f9f1bb88f7ed5d2 Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Fri, 5 Jun 2026 17:34:29 +0200 Subject: [PATCH] fix: filter close-duplicates for org members (#28856) --- .github/workflows/close-duplicates.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/close-duplicates.yml b/.github/workflows/close-duplicates.yml index 590256058d..fe804f8443 100644 --- a/.github/workflows/close-duplicates.yml +++ b/.github/workflows/close-duplicates.yml @@ -14,7 +14,11 @@ jobs: should_run: ${{ steps.should_run.outputs.run }} steps: - id: should_run - run: echo "run=${{ github.event_name == 'issues' || github.event.discussion.category.name == 'Feature Request' }}" >> $GITHUB_OUTPUT + run: | + echo "run=${{ + (github.event_name == 'issues' || github.event.discussion.category.name == 'Feature Request') + && !contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.issue.author_association || github.event.discussion.author_association) + }}" >> "$GITHUB_OUTPUT" get_body: runs-on: ubuntu-latest