-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.13 KB
/
close_stale_issues_and_prs.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
36
name: 'Close Stale Issues and Pull Requests'
on:
schedule:
- cron: '0 12 * * SUN'
pull_request:
paths:
- .github/workflows/close_stale_issues_and_prs.yml
types:
- opened
- synchronize
permissions:
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
ascending: true
close-issue-message: 'Autoclose: Stale issue'
close-pr-message: 'Autoclose: Stale pull request'
days-before-issue-stale: 120
days-before-pr-stale: 30
days-before-close: 7
debug-only: ${{ github.event_name == 'pull_request' }}
exempt-all-milestones: true
exempt-issue-labels: blocked,do-not-close,feature,security
exempt-pr-labels: blocked,do-not-close,feature,security
operations-per-run: ${{ github.event_name == 'pull_request' && 1000 || 900}}
stale-issue-label: stale
stale-issue-message: 'Autostale: This issue is marked as stale'
stale-pr-label: stale
stale-pr-message: 'Autostale: This pull request is marked as stale'