Skip to content

Commit dec4212

Browse files
authored
Merge pull request #969 from skl/skl/stale-action
ci: use stale action to apply needs-attention label
2 parents 87ff2ad + 9fe1b34 commit dec4212

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/stale.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Check whether issues or PRs need attention
2+
on:
3+
workflow_dispatch: {}
4+
schedule:
5+
- cron: "0 0 * * *"
6+
permissions:
7+
issues: write
8+
pull-requests: write
9+
jobs:
10+
stale:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/stale@v9
14+
with:
15+
days-before-stale: 30
16+
days-before-close: 7
17+
stale-issue-message: >
18+
This issue has not had any activity in the past 30 days, so the
19+
`stale` label has been added to it.
20+
21+
* The `stale` label will be removed if there is new activity
22+
* The issue will be closed in 2 days if there is no new activity
23+
* Add the `keepalive` label to exempt this issue from the stale check action
24+
25+
Thank you for your contributions!
26+
stale-pr-message: >
27+
This PR has been automatically marked as stale because it has not
28+
had any activity in the past 30 days.
29+
30+
The next time this stale check runs, the stale label will be
31+
removed if there is new activity. The issue will be closed in 7
32+
days if there is no new activity.
33+
34+
Thank you for your contributions!
35+
stale-issue-label: stale
36+
stale-pr-label: stale
37+
exempt-issue-labels: keepalive
38+
exempt-pr-labels: keepalive

0 commit comments

Comments
 (0)