Skip to content

Commit c6269c7

Browse files
authored
Add actions/stale workflow. (#4615)
To help with cleaning up old/irrelevant issues and PRs. Issues can be exempted from this by adding a "backlog" label, or by having an assignee.
1 parent 0c7b4bb commit c6269c7

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/staleness.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Close stale issues and PRs"
2+
3+
permissions: read-all
4+
5+
on:
6+
schedule:
7+
- cron: "0 * * * *"
8+
9+
jobs:
10+
stale:
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
17+
with:
18+
days-before-stale: 60
19+
days-before-close: 14
20+
operations-per-run: 100
21+
remove-stale-when-updated: true
22+
exempt-issue-labels: "good first issue,backlog"
23+
exempt-all-assignees: true
24+
ignore-updates: true
25+
stale-issue-label: stale
26+
stale-issue-message: |
27+
This issue has not had any activity for 60 days and will be automatically closed in two weeks
28+
stale-pr-label: stale
29+
stale-pr-message: |
30+
This pull request has not had any activity for 60 days and will be automatically closed in two weeks
31+
close-issue-label: "autoclosed"
32+
close-issue-message: |
33+
Automatically closing stale issue
34+
close-pr-label: "autoclosed"
35+
close-pr-message: |
36+
Automatically closing stale pull request

0 commit comments

Comments
 (0)