Skip to content

Commit 03acf47

Browse files
committed
Remove stale labels instantly on activity
1 parent 24bb05c commit 03acf47

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/unstale.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Unmark issues and pull requests as stale on activity
2+
on:
3+
issue_comment:
4+
types: [created]
5+
6+
# actions/stale does this automatically, but only once a day.
7+
# This immediately removes the label when the user creates a comment.
8+
jobs:
9+
remove-stale-label:
10+
if: (github.repository == 'clojure-emacs/cider')
11+
runs-on: ubuntu-latest
12+
permissions:
13+
issues: write
14+
pull-requests: write
15+
steps:
16+
- name: Remove stale label
17+
env:
18+
GH_TOKEN: ${{ github.token }}
19+
run: gh issue edit ${{ github.event.issue.number }} --remove-label "stale" -R ${{ github.repository }}

0 commit comments

Comments
 (0)