-
Notifications
You must be signed in to change notification settings - Fork 832
Expand file tree
/
Copy pathissue-management-stale-action.yml
More file actions
59 lines (54 loc) · 2.23 KB
/
issue-management-stale-action.yml
File metadata and controls
59 lines (54 loc) · 2.23 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
name: Issue management - run stale action
on:
schedule:
# hourly at minute 23
- cron: "23 6 * * *"
workflow_dispatch:
permissions: {}
concurrency:
group: "stale-issues-and-prs"
cancel-in-progress: false
jobs:
stale:
permissions:
contents: read
actions: write # because actions/stale deletes its old cache before saving new one
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
runs-on: ubuntu-latest
steps:
# Handle stale PRs
# - After 120 days inactive: Adds "stale" label + warning comment
# - After 30 more days inactive: Closes
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
with:
days-before-issue-stale: -1
days-before-issue-close: -1
days-before-pr-stale: 120
days-before-pr-close: 30
stale-pr-label: stale
stale-pr-message: >
This PR has been marked as stale due to 120 days of inactivity.
It will be automatically closed if there is no further activity over the next 30 days.
close-pr-message: >
This PR was automatically closed due to lack of activity after being marked stale. Feel
free to reopen if you would like to continue working on it.
operations-per-run: 1000
# Handle stale issues
# - After 360 days (12 months) inactive: Adds "stale" label + warning comment
# - After 30 more days inactive: Closes
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
with:
days-before-issue-stale: 360
days-before-issue-close: 30
days-before-pr-stale: -1
days-before-pr-close: -1
stale-issue-label: stale
stale-issue-message: >
This issue has been marked as stale due to 12 months of inactivity.
It will be automatically closed if there is no further activity over the next 30 days.
close-issue-message: >
This issue was automatically closed due to lack of activity after being marked stale.
Feel free to reopen if you would like to continue working on it.
operations-per-run: 1000