Skip to content

Commit 7f71367

Browse files
authored
Merge pull request #5811 from cfengine/olehermanse-patch-2
Added stale workflow to label and close stale PRs
2 parents 589fd59 + b0d5593 commit 7f71367

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/stale.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# For more information, see:
2+
# https://github.com/actions/stale
3+
name: Label and close stale pull requests
4+
5+
on:
6+
schedule:
7+
- cron: '31 19 * * *'
8+
9+
jobs:
10+
stale:
11+
12+
runs-on: ubuntu-latest
13+
permissions:
14+
pull-requests: write
15+
16+
steps:
17+
- uses: actions/stale@v5
18+
with:
19+
repo-token: ${{ secrets.GITHUB_TOKEN }}
20+
stale-pr-message: 'Marking this PR as stale due to inactivity; it will be closed in 7 days.'
21+
stale-pr-label: 'stale'
22+
days-before-stale: 30
23+
days-before-close: 7
24+
close-pr-message: "Closing PR due to inactivity. Feel free to open a new PR if necessary."
25+

0 commit comments

Comments
 (0)