Skip to content

Commit 2480c8a

Browse files
SONARXML-207 Add automation to mark and close stale PRs (#316)
1 parent fe718f9 commit 2480c8a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: 'Close stale PRs'
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: '30 2 * * *'
6+
7+
jobs:
8+
stale:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
steps:
14+
- uses: actions/stale@v9
15+
with:
16+
stale-pr-message: 'This PR is stale because it has been open 7 days with no activity. If there is no activity in the next 7 days it will be closed automatically'
17+
stale-pr-label: 'stale'
18+
days-before-stale: 7
19+
days-before-close: 7
20+
exempt-pr-labels: 'do-not-close,External Contribution'

0 commit comments

Comments
 (0)