forked from carbon-design-system/carbon-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
114 lines (114 loc) · 3.76 KB
/
.mergify.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
113
114
pull_request_rules:
- name: Close when CI Passes Step 1
conditions:
- 'status-success=ci/circleci: step-one'
actions:
close:
message:
'Looks good - You are one step closer to completion of the Carbon
React tutorial.'
label:
add: ['status: approved']
remove: ['status: needs correction']
- name: Comment when CI fails Step 1
conditions:
- 'status-failure=ci/circleci: step-one'
actions:
comment:
message:
'Hi, it looks like you are missing something. Double check your code,
your preview URL should match the
[preview](https://www.carbondesignsystem.com/tutorial/react/step-1#preview)
in the tutorial.'
label:
add: ['status: needs correction']
- name: Close when CI Passes Step 2
conditions:
- 'status-success=ci/circleci: step-two'
actions:
close:
message:
'Looks good - You are one step closer to completion of the Carbon
React tutorial.'
label:
add: ['status: approved']
remove: ['status: needs correction']
- name: Comment when CI fails Step 2
conditions:
- 'status-failure=ci/circleci: step-two'
actions:
comment:
message:
'Hi, it looks like you are missing something. Double check your code,
your preview URL should match the
[preview](https://www.carbondesignsystem.com/tutorial/react/step-2#preview)
in the tutorial.'
label:
add: ['status: needs correction']
- name: Close when CI Passes Step 3
conditions:
- 'status-success=ci/circleci: step-three'
actions:
close:
message:
'Looks good - You are one step closer to completion of the Carbon
React tutorial.'
label:
add: ['status: approved']
remove: ['status: needs correction']
- name: Comment when CI fails Step 3
conditions:
- 'status-failure=ci/circleci: step-three'
actions:
comment:
message:
'Hi, it looks like you are missing something. Double check your code,
your preview URL should match the
[preview](https://www.carbondesignsystem.com/tutorial/react/step-3#preview)
in the tutorial.'
label:
add: ['status: needs correction']
- name: Close when CI Passes Step 4
conditions:
- 'status-success=ci/circleci: step-four'
actions:
close:
message:
'Looks good - You are one step closer to completion of the Carbon
React tutorial.'
label:
add: ['status: approved']
remove: ['status: needs correction']
- name: Comment when CI fails Step 4
conditions:
- 'status-failure=ci/circleci: step-four'
actions:
comment:
message:
'Hi, it looks like you are missing something. Double check your code,
your preview URL should match the
[preview](https://www.carbondesignsystem.com/tutorial/react/step-4#preview)
in the tutorial.'
label:
add: ['status: needs correction']
- name: Close when CI Passes Step 5
conditions:
- 'status-success=ci/circleci: step-five'
actions:
close:
message:
"Congratulations! You've completed the Carbon tutorial for React!"
label:
add: ['status: approved']
remove: ['status: needs correction']
- name: Comment when CI fails Step 5
conditions:
- 'status-failure=ci/circleci: step-five'
actions:
comment:
message:
'Hi, it looks like you are missing something. Double check the
[instructions](https://www.carbondesignsystem.com/tutorial/react/step-5)
in step 5 of the tutorial.'
label:
add: ['status: needs correction']