Skip to content

Commit 451bcc7

Browse files
authored
Automagically manage pull requests (infra) (#2068)
1 parent 5bd660c commit 451bcc7

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/stale.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 'Close stale PRs'
2+
on:
3+
pull_request:
4+
branches: [ main ]
5+
paths:
6+
- .github/workflows/stale.yaml
7+
workflow_dispatch:
8+
schedule:
9+
- cron: '30 1 * * *'
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
stale:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
pull-requests: write
19+
issues: write
20+
steps:
21+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639
22+
with:
23+
stale-pr-message: 'This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in a week.'
24+
close-pr-message: 'This PR was closed because of inactivity. Feel free to re-open this once you want to work on it again!'
25+
days-before-stale: 60
26+
days-before-close: 7
27+
days-before-issue-stale: -1
28+
days-before-issue-close: -1

0 commit comments

Comments
 (0)