Skip to content

Commit 60782b5

Browse files
authored
Added close stale issues workflow (#634)
## Changes Added workflows for closing stale issues. It adds a Github Action that warns and then auto closes stale issues.
1 parent 7beb0fb commit 60782b5

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: "Close Stale Issues"
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 * * *" # Run at midnight every day
7+
8+
jobs:
9+
cleanup:
10+
permissions:
11+
issues: write
12+
contents: read
13+
pull-requests: write
14+
runs-on: ubuntu-latest
15+
name: Stale issue job
16+
steps:
17+
- uses: actions/stale@v9
18+
with:
19+
stale-issue-message: This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
20+
stale-pr-message: This PR has not received an update in a while. If you want to keep this PR open, please leave a comment below or push a new commit and auto-close will be canceled.
21+
22+
# These labels are required
23+
stale-issue-label: Stale
24+
stale-pr-label: Stale
25+
26+
exempt-issue-labels: No Autoclose
27+
exempt-pr-labels: No Autoclose
28+
29+
# Issue timing
30+
days-before-stale: 30
31+
days-before-close: 7
32+
33+
repo-token: ${{ secrets.GITHUB_TOKEN }}
34+
loglevel: DEBUG
35+
# TODO: Remove dry-run after merge when confirmed it works correctly
36+
dry-run: true

0 commit comments

Comments
 (0)