-
Notifications
You must be signed in to change notification settings - Fork 1.9k
27 lines (24 loc) · 964 Bytes
/
close-stale.yml
File metadata and controls
27 lines (24 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Close Stale Issues and PRs
on:
schedule:
# Run daily at 02:00 UTC
- cron: '0 2 * * *'
workflow_dispatch:
# Allow manual triggering
permissions:
issues: write
pull-requests: write
jobs:
close-stale:
runs-on: ubuntu-latest
steps:
- name: Close stale issues and PRs
uses: actions/stale@v9
with:
# Disable automatic stale marking - only close manually labeled items
days-before-stale: -1
days-before-close: 7
stale-issue-label: 'stale'
stale-pr-label: 'stale'
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.'
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.'