Skip to content

Commit e260ab6

Browse files
authored
Merge pull request #674 from FESOM/cleanup_stale_issues
Mark issues and PRs as stale after two years of inactivity.
2 parents a866887 + 3ab31c5 commit e260ab6

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
2+
#
3+
# You can adjust the behavior by modifying this file.
4+
# For more information, see:
5+
# https://github.com/actions/stale
6+
name: Mark stale issues and pull requests
7+
8+
on:
9+
schedule:
10+
- cron: '00 14 * * *'
11+
12+
jobs:
13+
stale:
14+
15+
runs-on: ubuntu-latest
16+
permissions:
17+
issues: write
18+
pull-requests: write
19+
20+
steps:
21+
- uses: actions/stale@v5
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
days-before-issue-stale: 730
25+
days-before-pr-stale: 730
26+
days-before-issue-close: 30
27+
days-before-pr-close: -1
28+
stale-issue-message: 'This issue has been inactive for two years. It will now be marked as stale and closed after 30 days of further inactivity. Please add a comment to reset this automatic closing of this issue or close it if solved.'
29+
stale-pr-message: 'This PR has been inactive for two years. It will now be marked as stale. Please close this PR if no longer needed.'
30+
stale-issue-label: 'Stale'
31+
stale-pr-label: 'Stale'
32+
close-issue-label: 'Closed by github-actions'
33+
exempt-issue-labels: enhancement, feature request
34+
exempt-pr-labels: enhancement, feature request

0 commit comments

Comments
 (0)