Skip to content

Commit 0de6021

Browse files
authored
Add support for Close Stale Issues GitHub Action (#99)
https://github.com/marketplace/actions/close-stale-issues Signed-off-by: Matt Ray <github@mattray.dev>
1 parent 2afac18 commit 0de6021

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/configs/stale.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## https://github.com/marketplace/actions/close-stale-issues#recommended-permissions
2+
# Give stalebot permission to update issues and pull requests
3+
permissions:
4+
issues: write
5+
pull-requests: write

.github/workflows/stale.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v8
11+
with:
12+
stale-issue-message: 'This issue has been marked as stale because it has been open for 180 days with no activity. Please remove the stale label or comment or this issue will be closed in 5 days.'
13+
close-issue-message: 'This issue was closed because it has been inactive for 185 days with no activity.'
14+
stale-pr-message: 'This pull request has been marked as stale because it has been open for 60 days with no activity. Please remove the stale label or comment or this pull request will be closed in 5 days.'
15+
close-pr-message: 'This pull request was closed because it has been inactive for 65 days with no activity.'
16+
days-before-issue-stale: 180
17+
days-before-issue-close: 5
18+
days-before-pr-stale: 60
19+
days-before-pr-close: 5

0 commit comments

Comments
 (0)