Skip to content

Commit a7e03f7

Browse files
authored
chore: auto-close stale issues (#237)
1 parent f49209c commit a7e03f7

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/stale.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: "Stale issues and PRs handler"
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 * * *"
7+
8+
permissions: read-all
9+
10+
jobs:
11+
stale:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
steps:
17+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
18+
- uses: actions/stale@v9
19+
id: stale
20+
with:
21+
repo-token: ${{ secrets.GITHUB_TOKEN }}
22+
stale-issue-message: |
23+
This issue has gone 30 days without any activity and meets the project's definition of "stale". This will be auto-closed if there is no new activity over the next 30 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!
24+
stale-pr-message: |
25+
This PR has gone 30 days without any activity and meets the project's definition of "stale". This will be auto-closed if there is no new activity over the next 30 days. If the issue is still relevant and active, you can simply comment with a "bump" to keep it open, or add the label "not_stale". Thanks for keeping our repository healthy!
26+
stale-issue-label: "no-issue-activity"
27+
stale-pr-label: "no-pr-activity"
28+
days-before-stale: 30
29+
days-before-close: 30
30+
exempt-all-milestones: true
31+
exempt-issue-labels: "not_stale"
32+
exempt-pr-labels: "not_stale"

0 commit comments

Comments
 (0)