-
Notifications
You must be signed in to change notification settings - Fork 34
40 lines (33 loc) · 1.55 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Stale issues and PRs
# Please refer to https://github.com/actions/stale/blob/master/action.yml
# to see all config knobs of the stale action.
on:
# workflow_dispatch so that it can be triggered manually if needed
workflow_dispatch:
schedule:
- cron: "33 23 * * *"
permissions:
contents: read
jobs:
stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'A friendly reminder that this issue had no activity for at least 90 days. Stale issues will be closed after an additional 30 days of inactivity.'
stale-pr-message: 'A friendly reminder that this PR had no activity for at least 90 days. Stale PRs will be closed after an additional 30 days of inactivity.'
stale-issue-label: 'lifecycle/stale'
close-issue-label: 'lifecycle/rotten'
exempt-issue-labels: 'lifecycle/active,lifecycle/frozen'
stale-pr-label: 'lifecycle/stale'
close-pr-label: 'lifecycle/rotten'
exempt-pr-labels: 'lifecycle/active,lifecycle/frozen'
days-before-stale: 90
days-before-close: 30
close-issue-message: "This issue was closed because it has been inactive for 90 days since being marked as stale."
close-pr-message: "This PR was closed because it has been inactive for 90 days since being marked as stale."
remove-stale-when-updated: true