Skip to content

Commit 3ba31ec

Browse files
yubiuserPromoFaux
authored andcommitted
Do not try to remove stale label on PRs
Signed-off-by: Christian König <[email protected]>
1 parent c9e170e commit 3ba31ec

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/stale.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ jobs:
2929
operations-per-run: 300
3030
close-issue-reason: 'not_planned'
3131

32-
remove_stale: # trigger "stale" removal immediately when stale issues are commented on
33-
if: github.event_name == 'issue_comment'
32+
remove_stale:
33+
# trigger "stale" removal immediately when stale issues are commented on
34+
# we need to explicitly check that the trigger does not run on comment on a PR as
35+
# 'issue_comment' triggers on issues AND PR comments
36+
if: github.event_name == 'issue_comment' && ${{ !github.event.issue.pull_request }}
3437
permissions:
3538
contents: read # for actions/checkout
3639
issues: write # to edit issues label

0 commit comments

Comments
 (0)