-
Notifications
You must be signed in to change notification settings - Fork 279
112 lines (107 loc) · 4.09 KB
/
close-expired-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
109
110
111
112
name: Expired Issues Closure
on:
schedule:
- cron: 0 5 * * *
jobs:
cycle-weekly-close:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Close expired "duplicated" issues
uses: piroor/close-expired-issues-based-on-label@master
env:
LABEL: "duplicated"
EXCEPTION_LABELS: "needs-triage"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXPIRE_DAYS: 7
- name: Close expired "expired" issues
uses: piroor/close-expired-issues-based-on-label@master
env:
LABEL: "expired"
EXCEPTION_LABELS: "needs-triage"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXPIRE_DAYS: 7
- name: Close expired "wontfix" issues
uses: piroor/close-expired-issues-based-on-label@master
env:
LABEL: "wontfix"
EXCEPTION_LABELS: "needs-triage"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXPIRE_DAYS: 7
- name: Close expired "out of scope" issues
uses: piroor/close-expired-issues-based-on-label@master
env:
LABEL: "out of scope"
EXCEPTION_LABELS: "needs-triage"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXPIRE_DAYS: 7
- name: Close expired "intentional" issues
uses: piroor/close-expired-issues-based-on-label@master
env:
LABEL: "intentional"
EXCEPTION_LABELS: "needs-triage"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXPIRE_DAYS: 7
- name: Close expired "invalid" issues
uses: piroor/close-expired-issues-based-on-label@master
env:
LABEL: "invalid"
EXCEPTION_LABELS: "needs-triage"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXPIRE_DAYS: 7
- name: Close expired "has-workaround" issues
uses: piroor/close-expired-issues-based-on-label@master
env:
LABEL: "has-workaround"
EXCEPTION_LABELS: "Firefox-issue, help wanted, in-progress, needs-triage"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXPIRE_DAYS: 14
EXTEND_DAYS_BY_REOPENED: 7
EXTEND_DAYS_BY_COMMENTED: 7
- name: Close expired "fixed" issues
uses: piroor/close-expired-issues-based-on-label@master
env:
LABEL: "fixed"
EXCEPTION_LABELS: "needs-triage"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXPIRE_DAYS: 14
EXTEND_DAYS_BY_REOPENED: 7
EXTEND_DAYS_BY_COMMENTED: 7
- name: Close expired "maybe fixed" issues
uses: piroor/close-expired-issues-based-on-label@master
env:
LABEL: "maybe fixed"
EXCEPTION_LABELS: "in-progress, needs-triage"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXPIRE_DAYS: 14
EXTEND_DAYS_BY_REOPENED: 7
EXTEND_DAYS_BY_COMMENTED: 7
- name: Close expired "stale" issues
uses: piroor/close-expired-issues-based-on-label@master
env:
LABEL: "stale"
EXCEPTION_LABELS: "needs-triage"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXPIRE_DAYS: 14
EXTEND_DAYS_BY_REOPENED: 7
EXTEND_DAYS_BY_COMMENTED: 7
- name: mark "help wanted" issues as stale
uses: piroor/auto-mark-as-stale-issues@main
env:
LABEL: "stale"
EXCEPTION_LABELS: "needs-triage"
CANDIDATE_LABELS: "help wanted"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXPIRE_DAYS: 30
EXTEND_DAYS_BY_COMMENTED: 7
COMMENT: This issue has been labeled as "stale" due to no response by the reporter within 1 month (and 7 days after last commented by someone). And it will be closed automatically 14 days later if not responded.
- name: mark "Firefox-issue" issues as stale
uses: piroor/auto-mark-as-stale-issues@main
env:
LABEL: "stale"
EXCEPTION_LABELS: "needs-triage"
CANDIDATE_LABELS: "Firefox-issue"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXPIRE_DAYS: 365
EXTEND_DAYS_BY_COMMENTED: 7
COMMENT: This issue has been labeled as "stale" due to no response by the reporter within 1 year (and 7 days after last commented by someone). And it will be closed automatically 14 days later if not responded.