generated from qctrl/template
-
Notifications
You must be signed in to change notification settings - Fork 1
25 lines (24 loc) · 1.14 KB
/
check-stale.yaml
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
##### This file is managed automatically. To update visit: https://github.com/qctrl/repositories-manager. #####
name: "Close stale issues and PRs"
on:
schedule:
- cron: "0 23 * * *" # Every day at 11:00 PM UTC.
jobs:
stale:
runs-on: ubuntu-latest
permissions:
issues: write
pull-requests: write
contents: write
steps:
- uses: actions/stale@v9
with:
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment, or this issue will be closed in 5 days."
stale-pr-message: "This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment, or this PR will be closed and the branch deleted in 5 days."
close-issue-message: "This issue was closed because it has been stalled for 5 days with no activity."
close-pr-message: "This PR was closed because it has been stalled for 5 days with no activity."
days-before-stale: 30
days-before-close: 5
stale-issue-label: "stale"
exempt-pr-labels: "pinned,security"
delete-branch: true