Skip to content

Commit 93d50c3

Browse files
committed
Add workflow to close stale issues
1 parent 52c2ae8 commit 93d50c3

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Close Stale Issues
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 * * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
14+
steps:
15+
- uses: actions/stale@v10
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
days-before-issue-stale: 21
19+
days-before-issue-close: 7
20+
stale-issue-message: "This issue has been marked stale because it has had no activity for 21 days. It will be closed in 7 days if no further activity occurs."
21+
close-issue-message: "This issue has been automatically closed because it has had no activity for 7 days since being marked stale."
22+
stale-issue-label: "stale"
23+
24+
# Don't auto-close PRs
25+
days-before-pr-stale: -1
26+
days-before-pr-close: -1

0 commit comments

Comments
 (0)