-
Notifications
You must be signed in to change notification settings - Fork 446
/
.mergify.yml
112 lines (112 loc) · 3.62 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
pull_request_rules:
- name: Close when CI Passes Step 1
conditions:
- 'status-success=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=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=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=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=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=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=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=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=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=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']