Skip to content

Commit 48a95e2

Browse files
d-e-s-odanielocfb
authored andcommitted
Add GitHub workflow to close stale PRs
This change introduces a GitHub workflow that takes care of automatically closing stale pull requests after a sufficiently long time has elapsed without any action. Signed-off-by: Daniel Müller <[email protected]>
1 parent a0b4dbf commit 48a95e2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/stale.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Close stale PRs
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v9
11+
with:
12+
# Disable staleness logic for issues.
13+
days-before-stale: -1
14+
days-before-close: -1
15+
# Explicitly enable staleness logic for pull requests.
16+
days-before-pr-stale: 30
17+
days-before-pr-close: 5
18+
stale-pr-message: 'This pull request is considered stale because it has been open 30 days with no activity. Remove stale label or comment or it will be closed in 5 days.'
19+
close-pr-message: 'Closing pull request as it is stale.'

0 commit comments

Comments
 (0)