-
-
Notifications
You must be signed in to change notification settings - Fork 0
108 lines (95 loc) · 4.57 KB
/
stale-issues.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
name: "Close stale issues"
on: # yamllint disable-line rule:truthy
schedule:
- cron: "0 0 * * *"
permissions:
contents: "read"
jobs:
default:
permissions:
issues: "write" # for actions/stale to close stale issues
pull-requests: "write" # for actions/stale to close stale PRs
timeout-minutes: 1
runs-on: "ubuntu-latest"
steps:
- name: "Harden Runner"
uses: "step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7" # v2.10.1
with:
egress-policy: "audit"
- uses: "actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e" # v9.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
stale-issue-message: |
This issue has been automatically marked as stale because it has been open for 21 days with no activity.
It will be closed in 7 days if no further activity (Remove label or comment) occurs.
If we missed this issue please reply to keep it active.
Thanks for being a part of this project. 🙏
stale-issue-label: "Stale"
remove-stale-when-updated: true
exempt-issue-labels: "Added,Enhancement,Changed,Deprecated,Fixed,Removed,Security,Status: Help wanted,Status: Needs Work,Status: Waiting for feedback,Type: Unconfirmed,Type: Bug"
days-before-stale: 21
days-before-close: 7
invalid:
permissions:
issues: "write" # for actions/stale to close stale issues
pull-requests: "write" # for actions/stale to close stale PRs
timeout-minutes: 1
runs-on: "ubuntu-latest"
steps:
- name: "Harden Runner"
uses: "step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7" # v2.10.1
with:
egress-policy: "audit"
- uses: "actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e" # v9.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
stale-issue-message: |
This issue has been automatically marked as stale because it has been labeled as invalid.
Thanks for being a part of this project. 🙏
stale-issue-label: "Stale"
only-labels: "Type: Unconfirmed"
days-before-stale: 1
days-before-close: 2
duplicate:
permissions:
issues: "write" # for actions/stale to close stale issues
pull-requests: "write" # for actions/stale to close stale PRs
timeout-minutes: 1
runs-on: "ubuntu-latest"
steps:
- name: "Harden Runner"
uses: "step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7" # v2.10.1
with:
egress-policy: "audit"
- uses: "actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e" # v9.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
stale-issue-message: |
This issue has been automatically marked as stale because it has been labeled as duplicate.
Thanks for being a part of this project. 🙏
stale-issue-label: "Stale"
only-labels: "Duplicate"
days-before-stale: 1
days-before-close: 2
wontfix:
permissions:
issues: "write" # for actions/stale to close stale issues
pull-requests: "write" # for actions/stale to close stale PRs
timeout-minutes: 1
runs-on: "ubuntu-latest"
steps:
- name: "Harden Runner"
uses: "step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7" # v2.10.1
with:
egress-policy: "audit"
- uses: "actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e" # v9.0.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
stale-issue-message: |
This issue has been automatically marked as stale because it has been labeled as wontfix.
Thanks for being a part of this project. 🙏
stale-issue-label: "Stale"
only-labels: "Type: Wontfix"
days-before-stale: 1
days-before-close: 2