Skip to content

Commit 672fc16

Browse files
author
Felix Exner (fexner)
authored
Create stale.yml (#466)
* Create stale.yml Mark stale issues and PRs automatically * Automatically close stale issues, add exceptions This gets really powerful when issues can get closed automatically. However, adding exception labels that prevent automatic closing is rather important. * Increase stale version to v7
1 parent 9777868 commit 672fc16

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/stale.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow warns 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: '37 22 * * *'
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@v7
22+
with:
23+
repo-token: ${{ secrets.GITHUB_TOKEN }}
24+
stale-issue-message: 'This issue has not been updated for a long time. If no further updates are added, this will be closed automatically. Comment on the issue to prevent automatic closing.'
25+
stale-pr-message: 'This PR hasn't made any progress for quite some time and will be closed soon. Please comment if it is still relevant.'
26+
stale-issue-label: 'close if no update'
27+
exempt-issue-labels: 'bug,documentation,PR Pending,enhancement,ToDo, help wanted, waiting_for_sync'
28+
days-before-stale: 90
29+
days-before-close: -1
30+
days-before-issue-close: 30
31+
close-issue-message: 'This issue has been closed due to inactivity. Feel free to comment or reopen if this is still relevant.'
32+
#debug-only: true
33+
remove-stale-when-updated: true

0 commit comments

Comments
 (0)