forked from carbon-design-system/carbon-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
86 lines (86 loc) · 3.93 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
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 and earning the digital credential.'
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 👋 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 and earning the digital credential.'
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 👋 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 and earning the digital credential.'
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 👋 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 and earning the digital credential.'
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 👋 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! Feel free to stop this running application on IBM Cloud to avoid the possibility of incurring any charges 💵 Please see the wrapping up step to apply for your badge! https://www.carbondesignsystem.com/tutorial/react/wrapping-up"
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 👋 Looks like you are missing something, double check your the [instructions](https://www.carbondesignsystem.com/tutorial/react/step-5) in step 5 of the tutorial. 🔎'
label:
add: ['status: needs correction']