ci: only remove blocked/need-repro on comment (#37879)
This commit is contained in:
parent
fef1b04238
commit
2ad1324b9d
2 changed files with 24 additions and 0 deletions
23
.github/workflows/issue-commented.yml
vendored
Normal file
23
.github/workflows/issue-commented.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: Issue Commented
|
||||||
|
|
||||||
|
on:
|
||||||
|
issue_comment:
|
||||||
|
types:
|
||||||
|
- created
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
issue-commented:
|
||||||
|
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) }}
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
ISSUE_URL: ${{ github.event.issue.html_url }}
|
||||||
|
run: |
|
||||||
|
gh issue edit $ISSUE_URL --remove-label 'blocked/need-repro'
|
1
.github/workflows/stale.yml
vendored
1
.github/workflows/stale.yml
vendored
|
@ -33,6 +33,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
days-before-stale: -1
|
days-before-stale: -1
|
||||||
days-before-close: 10
|
days-before-close: 10
|
||||||
|
remove-stale-when-updated: false
|
||||||
stale-issue-label: blocked/need-repro
|
stale-issue-label: blocked/need-repro
|
||||||
stale-pr-label: not-a-real-label
|
stale-pr-label: not-a-real-label
|
||||||
operations-per-run: 1750
|
operations-per-run: 1750
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue