Skip to content

Commit 0d8cdfa

Browse files
github action: close manually marked stale issues/prs after 7 days (#12812)
1 parent e0bf549 commit 0d8cdfa

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/close-stale.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Close Stale Issues and PRs
2+
3+
on:
4+
schedule:
5+
# Run daily at 02:00 UTC
6+
- cron: '0 2 * * *'
7+
workflow_dispatch:
8+
# Allow manual triggering
9+
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
14+
jobs:
15+
close-stale:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Close stale issues and PRs
19+
uses: actions/stale@v9
20+
with:
21+
# Disable automatic stale marking - only close manually labeled items
22+
days-before-stale: -1
23+
days-before-close: 7
24+
stale-issue-label: 'stale'
25+
stale-pr-label: 'stale'
26+
close-issue-message: 'This issue has been automatically closed because it was manually labeled as stale. If you believe this was closed in error, please reopen it and remove the stale label.'
27+
close-pr-message: 'This PR has been automatically closed because it was manually labeled as stale. If you believe this was closed in error, please reopen it and remove the stale label.'

0 commit comments

Comments
 (0)