Skip to content

Commit 941dba4

Browse files
committed
ci: add actions/stale workflow for issues
1 parent 00ce30b commit 941dba4

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Close Stale Issues
2+
3+
on:
4+
schedule:
5+
# Run every day at 2:00 AM UTC
6+
- cron: '0 2 * * *'
7+
8+
jobs:
9+
stale:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/stale@v9
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
# Only process issues with the info-needed label (can have other labels too)
16+
any-of-issue-labels: 'info-needed'
17+
# Days before an issue with the info-needed label is considered stale
18+
days-before-issue-stale: 30
19+
# Days before closing a stale issue (7 day delay after marking as stale)
20+
days-before-issue-close: 7
21+
# Don't process pull requests
22+
days-before-pr-stale: -1
23+
days-before-pr-close: -1
24+
stale-issue-label: 'stale'
25+
close-issue-label: 'closed-by-stale'
26+
# Remove stale label when issue receives comments/updates
27+
remove-issue-stale-when-updated: true
28+
# Customized messages
29+
stale-issue-message: |
30+
This issue has been inactive for 30 days with the `info-needed` label.
31+
Please provide the requested information to keep this issue open.
32+
This issue will be closed in 7 days if no response is provided.
33+
close-issue-message: |
34+
This issue has been closed because it has been inactive for 30 days with the `info-needed` label and no information was provided.
35+
If you have additional context or want to reopen this issue, please comment and we'll be happy to help!

CONTRIBUTING.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,22 @@ Here are a few things you can do that will increase the likelihood of your pull
2828

2929
Work in Progress pull requests are also welcome to get feedback early on, or if there is something blocked you.
3030

31+
## Issue Management Policy
32+
33+
To maintain project health and keep issues actionable, we automatically manage stale issues using the following policy:
34+
35+
**Stale Issue Closure**: Issues labeled with `info-needed` that remain inactive for 30 days will be automatically marked as stale. After an additional 7-day grace period, the issue will be closed if no response is provided.
36+
37+
When an issue is marked as stale, we'll post a comment asking you to provide the requested information. If you respond with the information or show continued interest, the stale label will be removed and the issue will remain open.
38+
39+
This policy helps us:
40+
41+
- Keep the issue tracker focused on active issues
42+
- Encourage timely responses to information requests
43+
- Ensure discussions don't get lost in an ever-growing issue backlog
44+
45+
If your issue was closed due to inactivity but you still have relevant information or context, please feel free to reopen it by commenting on the issue or opening a new one.
46+
3147
## Resources
3248

3349
- [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)

0 commit comments

Comments
 (0)