From cedffae4f6071f6d3bb0b6a7828330f3d04405ae Mon Sep 17 00:00:00 2001 From: Robin Salen Date: Fri, 28 Jun 2024 15:55:32 -0400 Subject: [PATCH] fix: get PR check workflow to work properly --- .github/workflows/pr_checking.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr_checking.yml b/.github/workflows/pr_checking.yml index 7799b94c..d1554610 100644 --- a/.github/workflows/pr_checking.yml +++ b/.github/workflows/pr_checking.yml @@ -50,7 +50,7 @@ jobs: uses: actions/checkout@v4 - name: Close PR if spam are found and author is not a contributor or member - if: ${{ env.is_spam == 'true' && github.event.pull_request.author_association != 'CONTRIBUTOR' && github.event.pull_request.author_association != 'MEMBER' && github.event.pull_request.author_association != 'OWNER' }} + if: ${{ env.is_spam == 'true' && github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' }} run: gh pr close ${{ github.event.pull_request.number }} --comment "Spam detected" env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file