mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Do not try to remove stale lables on PRs
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
parent
6a45c6a8e0
commit
b2c73f8325
1 changed files with 5 additions and 2 deletions
7
.github/workflows/stale.yml
vendored
7
.github/workflows/stale.yml
vendored
|
@ -29,8 +29,11 @@ jobs:
|
|||
operations-per-run: 300
|
||||
close-issue-reason: 'not_planned'
|
||||
|
||||
remove_stale: # trigger "stale" removal immediately when stale issues are commented on
|
||||
if: github.event_name == 'issue_comment'
|
||||
remove_stale:
|
||||
# trigger "stale" removal immediately when stale issues are commented on
|
||||
# we need to explicitly check that the trigger does not run on comment on a PR as
|
||||
# 'issue_comment' triggers on issues AND PR comments
|
||||
if: github.event_name == 'issue_comment' && ${{ !github.event.issue.pull_request }}
|
||||
permissions:
|
||||
contents: read # for actions/checkout
|
||||
issues: write # to edit issues label
|
||||
|
|
Loading…
Reference in a new issue