From 5ebbe25c6e079c9c07896dd25ebee281d2097615 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Fri, 1 Oct 2021 20:56:57 +0100 Subject: [PATCH] :building_construction: Check if user not contributor --- .github/workflows/issue-spam-control.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/issue-spam-control.yml b/.github/workflows/issue-spam-control.yml index c10a6521..cb445b3e 100644 --- a/.github/workflows/issue-spam-control.yml +++ b/.github/workflows/issue-spam-control.yml @@ -1,12 +1,12 @@ -# Will add a comment and close new issues opened by users that may be spam, or have not starred -# Is still a work in progress, will also detect if user has previous activity in repo and check when joined GH +# Will add a comment and close any new issues opened by +# users who have not yet committed to, or starred the repo name: 🎯 Issue Spam Control on: issues: types: [opened, reopened] jobs: - check: - if: ${{ ! contains( github.event.issue.labels.*.name, 'keep-open') }} + check-user: + if: ${{ ! contains( github.event.issue.labels.*.name, 'keep-open') && github.event.comment.author_association != 'CONTRIBUTOR' }} runs-on: ubuntu-latest name: Close issue opened by non-stargazer steps: