diff --git a/.github/workflows/issue-commented.yml b/.github/workflows/issue-commented.yml index 40a38d73ea41..d1739159d9f9 100644 --- a/.github/workflows/issue-commented.yml +++ b/.github/workflows/issue-commented.yml @@ -10,12 +10,13 @@ permissions: jobs: issue-commented: + name: Remove blocked/need-repro on comment + if: ${{ contains(github.event.issue.labels.*.name, 'blocked/need-repro') && !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }} permissions: issues: write runs-on: ubuntu-latest steps: - - name: Remove blocked/need-repro on comment - if: ${{ contains(github.event.issue.labels.*.name, 'blocked/need-repro') && !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }} + - name: Remove label env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ISSUE_URL: ${{ github.event.issue.html_url }} diff --git a/.github/workflows/issue-labeled.yml b/.github/workflows/issue-labeled.yml index f090208ae92d..48c027613403 100644 --- a/.github/workflows/issue-labeled.yml +++ b/.github/workflows/issue-labeled.yml @@ -9,12 +9,13 @@ permissions: # added using https://github.com/step-security/secure-workflows jobs: issue-labeled: + name: blocked/need-repro label added + if: github.event.label.name == 'blocked/need-repro' permissions: issues: write # for actions-cool/issues-helper to update issues runs-on: ubuntu-latest steps: - - name: blocked/need-repro label added - if: github.event.label.name == 'blocked/need-repro' + - name: Create comment uses: actions-cool/issues-helper@dad28fdb88da5f082c04659b7373d85790f9b135 # v3.3.0 with: actions: 'create-comment'