Skip to content

Commit 6a8774a

Browse files
committed
ci: add stale pull request workflow
1 parent 12a48e4 commit 6a8774a

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/stale.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Close Stale Pull Requests
2+
permissions: read-all
3+
4+
on:
5+
schedule:
6+
- cron: '0 2 * * *'
7+
workflow_dispatch:
8+
9+
jobs:
10+
stale:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
pull-requests: write
14+
steps:
15+
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
16+
with:
17+
days-before-pr-stale: 60
18+
days-before-pr-close: 14
19+
stale-pr-label: stale
20+
stale-pr-message: >
21+
This pull request has been automatically marked as stale because it has not had
22+
recent activity. It will be closed if no further activity occurs within 14 days.
23+
close-pr-message: >
24+
This pull request has been automatically closed due to inactivity.
25+
Please feel free to reopen it if you would like to continue working on it.
26+
days-before-issue-stale: -1
27+
days-before-issue-close: -1

0 commit comments

Comments
 (0)