-
-
Notifications
You must be signed in to change notification settings - Fork 6
23 lines (20 loc) · 1.05 KB
/
stale.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
name: Close Stale Issues
on:
schedule:
- cron: '0 0 * * *' # Runs daily at midnight UTC
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Close stale issues and PRs
uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue has been marked as stale due to inactivity. If no further activity occurs, it will be closed in 7 days.'
stale-pr-message: 'This PR has been marked as stale due to inactivity. If no further activity occurs, it will be closed in 7 days.'
days-before-stale: 30 # Number of days before an issue/PR becomes stale
days-before-close: 7 # Number of days to wait after marking as stale before closing
exempt-issue-labels: 'pinned,enhancement' # Do not mark issues with these labels as stale
exempt-pr-labels: 'work-in-progress' # Do not mark PRs with these labels as stale
operations-per-run: 30 # Number of actions to perform per run