-
Notifications
You must be signed in to change notification settings - Fork 154
35 lines (33 loc) · 1.89 KB
/
stale-issues.yml
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
28
29
30
31
32
33
34
35
name: "Close stale issues"
on:
schedule:
- cron: "0 0 * * *"
jobs:
check-issues:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/stale@v7
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue has not received a response in 2 weeks. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing."
close-issue-message: "Greetings! We are closing this issue because it has been open a long time and hasn’t been updated in a while and may not be getting the attention it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to comment or reopen the issue."
# Label applied or removed when an issue becomes stale
stale-issue-label: status/pending-close-response-required
remove-stale-when-updated: true
# Label and close type when a stale issue is finally closed
close-issue-label: status/rejected
close-issue-reason: not_planned
# Exempt any issue that hasn't been triaged yet, or that is clearly labeled
exempt-issue-labels: triage,status/confirmed,status/blocked,status/on-hold,status/completed
# Include only issues where any of these labels are present (aka only issues that need more info from the customer)
# that are either under discussion, but no info/answer has been provided in 2 weeks, or that were already marked
# as stale
any-of-issue-labels: need-more-information,status/discussing,status/pending-close-response-required
# Settings specific to issues
days-before-issue-stale: 14
days-before-issue-close: 7
# Set to ignore PRs
days-before-pr-stale: -1
days-before-pr-close: -1