introducing stalebot to help clean up old issues

Signed-off-by: si458 <simonsmith5521@gmail.com>

si458 committed Jun 3, 2025 at 16:41 UTC 6f5f5325f873937075f80cbda1f3aa88d87b2321
1 file changed +33
.github/workflows/stale.yml new
+33
@@ -0,0 +1,33 @@
1 +name: "Close stale issues and PRs"
2 +on:
3 + schedule:
4 + - cron: "1 2 * * *"
5 + workflow_dispatch:
6 +
7 +permissions:
8 + actions: write
9 + contents: write
10 + issues: write
11 + pull-requests: write
12 +
13 +jobs:
14 + stale:
15 + runs-on: ubuntu-latest
16 + steps:
17 + - uses: actions/stale@v9
18 + with:
19 + # Issues configuration
20 + stale-issue-message: "This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
21 + close-issue-message: "This issue has been automatically closed due to inactivity. If you believe this is still relevant, please feel free to reopen it."
22 +
23 + # PRs configuration
24 + stale-pr-message: "This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions."
25 + close-pr-message: "This pull request has been automatically closed due to inactivity. If you'd like to continue working on it, please reopen it."
26 +
27 + # Common configuration
28 + exempt-issue-labels: "pinned,important"
29 + exempt-pr-labels: "pinned,important"
30 +
31 + # Other configurations
32 + exempt-draft-pr: true
33 + operations-per-run: 100
\ No newline at end of file