Skip to content

Commit 95eeef9

Browse files
authored
Merge pull request #1733 from rhatdan/stale
Add stale githup workflow to maintain older issues and PRs.
2 parents 1a7272f + b201da0 commit 95eeef9

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/stale.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Mark stale issues and pull requests
2+
3+
# Please refer to https://github.com/actions/stale/blob/master/action.yml
4+
# to see all config knobs of the stale action.
5+
6+
on:
7+
schedule:
8+
- cron: "0 0 * * *"
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
stale:
15+
16+
permissions:
17+
issues: write # for actions/stale to close stale issues
18+
pull-requests: write # for actions/stale to close stale PRs
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/stale@v9
23+
with:
24+
repo-token: ${{ secrets.GITHUB_TOKEN }}
25+
stale-issue-message: 'A friendly reminder that this issue had no activity for 30 days.'
26+
stale-pr-message: 'A friendly reminder that this PR had no activity for 30 days.'
27+
stale-issue-label: 'stale-issue'
28+
stale-pr-label: 'stale-pr'
29+
days-before-stale: 30
30+
days-before-close: 365
31+
remove-stale-when-updated: true

0 commit comments

Comments
 (0)