Skip to content

Commit 1601124

Browse files
chore: add stale workflow to manage inactive issues/PRs (#18)
Add a GitHub Actions workflow, 'stale.yml', to automatically manage stale issues and pull requests. This workflow marks issues and PRs as stale after 30 days of inactivity and closes them if no action is taken within an additional 5 days. This change helps maintain repository hygiene by reducing the number of inactive issues and PRs. Exempt labels include 'enhancement' and 'bug'.
1 parent a8d0f51 commit 1601124

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/stale.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This workflow warns and then closes 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: '19 4 * * *'
11+
12+
jobs:
13+
stale:
14+
permissions:
15+
actions: write
16+
issues: write
17+
pull-requests: write
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/stale@v10
21+
with:
22+
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
23+
stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
24+
close-issue-message: 'This issue was closed because it has been stalled for 5 days with no activity.'
25+
close-pr-message: 'This PR was closed because it has been stalled for 5 days with no activity.'
26+
days-before-stale: 30
27+
days-before-close: 5
28+
exempt-issue-labels: 'enhancement,bug'
29+
exempt-pr-labels: 'enhancement,bug'

0 commit comments

Comments
 (0)