From 73c796317630cda97e909ddbe72dfccb4668dc20 Mon Sep 17 00:00:00 2001 From: Leo Gopal Date: Fri, 5 Apr 2024 11:58:46 +0200 Subject: [PATCH] props bot --- .github/workflows/props-bot.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/props-bot.yml b/.github/workflows/props-bot.yml index 88e027e..19693d1 100644 --- a/.github/workflows/props-bot.yml +++ b/.github/workflows/props-bot.yml @@ -39,7 +39,7 @@ jobs: runs-on: ubuntu-latest permissions: # The action needs permission `write` permission for PRs in order to add a comment. - pull-requests: write + issues: write contents: read timeout-minutes: 20 # The job will run when pull requests are open, ready for review and: @@ -49,9 +49,7 @@ jobs: # - The pull request is opened, synchronized, marked ready for review, or reopened. # - The `props-bot` label is added to the pull request. if: | - ( github.event_name == 'issue_comment' && github.event.issue || github.event_name == 'issue' ) && - ( github.event_name == 'labeled' && 'props-bot' == github.event.label.name ) && - ( ! github.event.pull_request.draft && github.event.pull_request.state == 'open' || ! github.event.issue.draft ) + ( github.event_name == 'labeled' && 'props-bot' == github.event.label.name ) && ( ! github.event.issue.draft && github.event.issue.state == 'open' || github.event.issue.state == 'closed' ) steps: - name: Gather a list of contributors uses: WordPress/props-bot-action@trunk