Skip to content

Commit c1eac3b

Browse files
1 parent 8aa38f8 commit c1eac3b

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/stale-pr.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Close stale pull requests"
2+
on:
3+
schedule:
4+
- cron: "10 4 * * *" # arbitrary time not to DDOS GitHub
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
stale:
11+
permissions:
12+
pull-requests: write # required for marking and closing stale PRs
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # v10.1.1
16+
with:
17+
repo-token: ${{ secrets.GITHUB_TOKEN }}
18+
stale-pr-message: 'This PR was marked stale. It will be closed in 30 days without additional activity.'
19+
close-pr-message: 'Closed as inactive. Feel free to reopen if this PR is still being worked on.'
20+
# opt out of defaults to avoid marking issues as stale
21+
days-before-stale: -1
22+
days-before-close: -1
23+
# overrides the above only for pull requests
24+
days-before-pr-stale: 30
25+
days-before-pr-close: 14

0 commit comments

Comments
 (0)