-
Notifications
You must be signed in to change notification settings - Fork 840
36 lines (27 loc) · 968 Bytes
/
stale-prs.yml
File metadata and controls
36 lines (27 loc) · 968 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
29
30
31
32
33
34
35
36
name: 'Close stale PRs'
on:
schedule:
- cron: '30 1 * * *'
workflow_dispatch:
permissions:
contents: write # only for delete-branch option
issues: write
pull-requests: write
jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
# docs: https://github.com/actions/stale?tab=readme-ov-file
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or it will be closed in 10 days.'
close-pr-message: 'This PR was closed because it has been stalled for 10 days with no activity.'
days-before-pr-stale: 60
days-before-pr-close: 10
# disable issue closing
days-before-issue-stale: -1
days-before-issue-close: -1
operations-per-run: 100
# Flag older PRs first
ascending: true
debug-only: false