Skip to content

Commit 9045188

Browse files
SONARJAVA-5168 Add automation to mark and close stale PRs (#4920)
1 parent 2448da1 commit 9045188

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

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)