Skip to content

Commit 9a1342c

Browse files
chore: add workflow to close inactive issues/PRs
1 parent 4d83c47 commit 9a1342c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.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 inactive issues
2+
3+
on:
4+
schedule:
5+
- cron: '30 1 * * *' # Runs at 01:30 UTC every day
6+
7+
permissions:
8+
issues: write
9+
pull-requests: write
10+
11+
jobs:
12+
stale:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/stale@v9
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
stale-issue-message: 'Hi there! 👋 This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you believe this is still relevant, please leave a comment to keep it open!'
19+
stale-pr-message: 'Hi there! 👋 This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. If you are still working on this, please let us know or push a new commit!'
20+
stale-issue-label: 'stale'
21+
stale-pr-label: 'stale'
22+
days-before-stale: 60
23+
days-before-close: 7
24+
exempt-issue-labels: 'bug,enhancement,security,pinned,help wanted,good first issue'
25+
exempt-pr-labels: 'dependencies,security'
26+
operations-per-run: 50

0 commit comments

Comments
 (0)