-
-
Notifications
You must be signed in to change notification settings - Fork 73
27 lines (25 loc) · 1018 Bytes
/
CLOSE_INACTIVE_ISSUES.yml
File metadata and controls
27 lines (25 loc) · 1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Close inactive issues
on:
schedule:
- cron: "30 1 * * *"
env:
DAYS_BEFORE_ISSUE_STALE: 7
DAYS_BEFORE_ISSUE_CLOSE: 3
jobs:
close-issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/stale@v9
with:
days-before-issue-stale: ${{ env.DAYS_BEFORE_ISSUE_STALE }}
days-before-issue-close: ${{ env.DAYS_BEFORE_ISSUE_CLOSE }}
stale-issue-label: "no issue activity"
any-of-issue-labels: "issue: question, pending response"
stale-issue-message: "There has been no activity on this issue for ${{ env.DAYS_BEFORE_ISSUE_STALE }} days. If this is still relevant, please reply to keep it open."
close-issue-message: "This issue was closed due to inactivity. If you feel this was done in error, please re-open or create a new issue."
close-issue-reason: "completed"
days-before-pr-stale: -1
days-before-pr-close: -1
repo-token: ${{ secrets.GITHUB_TOKEN }}