-
Notifications
You must be signed in to change notification settings - Fork 1.1k
28 lines (25 loc) · 991 Bytes
/
close-stale-issues.yml
File metadata and controls
28 lines (25 loc) · 991 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
28
name: 'Close stale issues'
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
permissions:
issues: 'write'
jobs:
stale:
name: 'Close stale issues'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/stale@v9
with:
ascending: false
any-of-issue-labels: 'State: Awaiting Response'
stale-issue-label: 'State: Stale'
stale-issue-message: 'This issue is stale because it has been open 5 days with no activity. Remove stale label or comment or this will be closed in 2 days.'
close-issue-message: 'This issue was closed because it has been stalled for 2 days with no activity.'
days-before-issue-stale: 5
days-before-issue-close: 2
days-before-pr-stale: -1
days-before-pr-close: -1
# labels-to-remove-when-stale: 'State: Awaiting Response,State: Stale' # TODO: Should do this after closing
labels-to-remove-when-unstale: 'State: Awaiting Response'