Skip to content

Commit 9234b16

Browse files
Add stale.yml workflow to manage stale issues and PRs
This workflow automatically marks issues and pull requests as stale after 30 days of inactivity and closes them after 7 additional days if no updates occur.
1 parent 73dd400 commit 9234b16

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 PRs
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # runs daily at midnight
6+
workflow_dispatch:
7+
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
12+
jobs:
13+
stale:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: 💤 Close stale issues and PRs
17+
uses: actions/stale@v9
18+
with:
19+
repo-token: ${{ secrets.GITHUB_TOKEN }}
20+
days-before-stale: 30
21+
days-before-close: 7
22+
stale-issue-message: >
23+
⚠️ This issue has been automatically marked as stale because it has not had activity in 30 days.
24+
It will be closed if no further updates occur within 7 days. Thank you for contributing!
25+
stale-pr-message: >
26+
⏳ This pull request has been marked as stale due to inactivity.
27+
Please update or comment to keep it open. It will close automatically after 7 days.
28+
stale-issue-label: "stale"
29+
stale-pr-label: "stale"
30+
exempt-issue-labels: "pinned,security,help wanted"
31+
exempt-pr-labels: "in-progress,important"

0 commit comments

Comments
 (0)