Skip to content

Commit 591fc3e

Browse files
GitHub: set up action to close inactive issues
1 parent e8cd54d commit 591fc3e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions
2+
3+
name: Close inactive issues
4+
on:
5+
schedule:
6+
- cron: "19 1 * * *" # “At 01:19.”
7+
workflow_dispatch: # To support running manually.
8+
9+
# Minimal access by default
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
close-issues:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
issues: write
18+
pull-requests: write
19+
steps:
20+
# https://github.com/marketplace/actions/close-stale-issues
21+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
22+
with:
23+
days-before-stale: -1 # Add the stale label manually.
24+
days-before-close: 21
25+
only-labels: "more info required"
26+
stale-issue-label: "more info required"
27+
close-issue-message: "Without additional information, we are unfortunately not sure how to resolve this issue. Therefore this issue has been automatically closed. Feel free to comment with additional details and we can re-open this issue."
28+
close-pr-message: "Without additional information, we are unfortunately not sure how to address this pull request. Therefore this pull request has been automatically closed. Feel free to comment with additional details or submit a new pull request."

0 commit comments

Comments
 (0)