Skip to content

Commit

Permalink
chore(mergify): add mergify config (carbon-design-system#5372)
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored Aug 10, 2020
1 parent da99cd4 commit 79b0694
Showing 1 changed file with 118 additions and 0 deletions.
118 changes: 118 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
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']

0 comments on commit 79b0694

Please sign in to comment.