forked from cubefs/cubefs
-
Notifications
You must be signed in to change notification settings - Fork 0
98 lines (85 loc) · 3.64 KB
/
issue_inactive.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
name: Issues Check Inactive
on:
schedule:
- cron: "17 10 * * *"
# labels: inactive-one-week, inactive-one-month, inactive-three-month, inactive-one-year, inactive-two-year
permissions:
issues: write
jobs:
check-inactive:
runs-on: ubuntu-latest
if: false # disable
steps:
- name: check-inactive-one-week
uses: actions-cool/issues-helper@25379ae1ea683ac484497214db131ab8f003a52b # v3.5.1
with:
actions: 'check-inactive'
token: ${{ secrets.GITHUB_TOKEN }}
inactive-day: 7
inactive-label: 'inactive-one-week'
exclude-labels: 'inactive-one-month,inactive-three-month,inactive-one-year,inactive-two-year'
- name: check-inactive-one-month
uses: actions-cool/issues-helper@25379ae1ea683ac484497214db131ab8f003a52b # v3.5.1
with:
actions: 'check-inactive'
token: ${{ secrets.GITHUB_TOKEN }}
inactive-day: 30
labels: 'inactive-one-week'
inactive-label: 'inactive-one-month'
- name: check-inactive-three-month
uses: actions-cool/issues-helper@25379ae1ea683ac484497214db131ab8f003a52b # v3.5.1
with:
actions: 'check-inactive'
token: ${{ secrets.GITHUB_TOKEN }}
inactive-day: 90
labels: 'inactive-one-month'
inactive-label: 'inactive-three-month'
- name: check-inactive-one-year
uses: actions-cool/issues-helper@25379ae1ea683ac484497214db131ab8f003a52b # v3.5.1
with:
actions: 'check-inactive'
token: ${{ secrets.GITHUB_TOKEN }}
inactive-day: 365
labels: 'inactive-three-month'
inactive-label: 'inactive-one-year'
- name: check-inactive-two-year
uses: actions-cool/issues-helper@25379ae1ea683ac484497214db131ab8f003a52b # v3.5.1
with:
actions: 'check-inactive'
token: ${{ secrets.GITHUB_TOKEN }}
inactive-day: 730
labels: 'inactive-one-year'
inactive-label: 'inactive-two-year'
# remove repetitive labels
- name: remove-inactive-two-year
if: github.event.label.name == 'inactive-two-year'
uses: actions-cool/issues-helper@25379ae1ea683ac484497214db131ab8f003a52b # v3.5.1
with:
actions: 'remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'inactive-one-week,inactive-one-month,inactive-three-month,inactive-one-year'
- name: remove-inactive-one-year
if: github.event.label.name == 'inactive-one-year'
uses: actions-cool/issues-helper@25379ae1ea683ac484497214db131ab8f003a52b # v3.5.1
with:
actions: 'remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'inactive-one-week,inactive-one-month,inactive-three-month'
- name: remove-inactive-three-month
if: github.event.label.name == 'inactive-three-month'
uses: actions-cool/issues-helper@25379ae1ea683ac484497214db131ab8f003a52b # v3.5.1
with:
actions: 'remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'inactive-one-week,inactive-one-month'
- name: remove-inactive-one-month
if: github.event.label.name == 'inactive-one-month'
uses: actions-cool/issues-helper@25379ae1ea683ac484497214db131ab8f003a52b # v3.5.1
with:
actions: 'remove-labels'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
labels: 'inactive-one-week'