Skip to content

Commit d596c55

Browse files
authored
Close stale issue automatically (#538)
This will automatically close old issues and pull requests. It should be fine to close those that have not received any responses. I read - https://docs.github.com/en/actions/managing-issues-and-pull-requests/closing-inactive-issues - https://github.com/marketplace/actions/close-stale-issues
1 parent 25806cd commit d596c55

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/close-issue.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# https://docs.github.com/en/actions/managing-issues-and-pull-requests/closing-inactive-issues
2+
# https://github.com/marketplace/actions/close-stale-issues
3+
name: Close inactive issues
4+
on:
5+
schedule:
6+
- cron: "30 1 * * *"
7+
8+
jobs:
9+
close-issues:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/stale@v8
16+
with:
17+
days-before-issue-stale: 14
18+
days-before-issue-close: 0
19+
stale-issue-label: "no-activity"
20+
close-issue-message: "This issue was closed because it has been inactive for 14 days."
21+
exempt-issue-labels: "bug,enhancement,keep"
22+
days-before-pr-stale: -1
23+
days-before-pr-close: 14
24+
stale-pr-label: "no-activity"
25+
close-pr-message: "This pull request was closed because it has been inactive for 14 days. Please reopen if you still intend to submit this pull request."
26+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)