11version : 2
22defaults :
33 checks_failure_payload : &checks_failure_payload
4- title : ' Mergeable Run have been Completed !'
4+ title : ' PR Not Mergeable !'
55 summary : |
6- ### Status: {{toUpperCase validationStatus}}
7- Here are some stats of the run:
8- - {{validationCount}} validations were ran.
9- - {{passCount}} PASSED
10- - {{failCount}} FAILED
6+ > [!IMPORTANT]
7+ > ### Status: {{toUpperCase validationStatus}}
8+ > Here are some stats of the run:
9+ > {{validationCount}} validations were ran.
10+ > {{passCount}} PASSED
11+ > {{failCount}} FAILED
1112 text : |
1213 {{#each validationSuites}}
14+ #### {{{statusIcon status}}} {{toUpperCase name}}
15+ {{#each validations }}
16+ {{{statusIcon status}}} {{ description }}}
17+ > {{{details.input}}}
18+ {{#if details.error}}
1319 > [!IMPORTANT]
14- > #### {{{statusIcon status}}} {{toUpperCase name}}
15- > {{#each validations }}
16- > {{{statusIcon status}}} {{ description }}}
17- > > {{{details.input}}}
18- > {{#if details.error}}
1920 > **Error:** {{{details.error}}}
20- > {{/if}}
21- > <details><summary>Settings</summary>
22- >
23- > {{{displaySettings details.settings}}}
24- >
25- > </details>
21+ {{/if}}
22+ <details><summary>Settings</summary>
23+ {{{displaySettings details.settings}}}
24+ </details>
25+
26+ {{/each}}
27+ {{/each}}
28+
29+ checks_success_payload : &checks_success_payload
30+ title : ' All Merge Checks Have Passed!!'
31+ summary : |
32+ > [!TIP]
33+ > ### Status: {{toUpperCase validationStatus}}
34+ > Here are some stats of the run:
35+ > {{validationCount}} validations were ran.
36+ > {{passCount}} PASSED
37+ > {{failCount}} FAILED
38+ text : |
39+ {{#each validationSuites}}
40+ #### {{{statusIcon status}}} {{toUpperCase name}}
41+ {{#each validations }}
42+ {{{statusIcon status}}} {{ description }}}
43+ > {{{details.input}}}
44+ <details><summary>Settings</summary>
45+ {{{displaySettings details.settings}}}
46+ </details>
2647
2748 {{/each}}
2849 {{/each}}
@@ -42,6 +63,16 @@ mergeable:
4263 # Do not allow 'DO NOT MERGE' phrase on PR's description.
4364 regex : ' DO NOT MERGE'
4465 message : ' Description says that the PR should not be merged yet.'
66+ pass :
67+ - do : checks
68+ status : ' success'
69+ payload : *checks_success_payload
70+ leave_old_comment : false
71+ fail :
72+ - do : checks
73+ status : ' failure'
74+ payload : *checks_failure_payload
75+ leave_old_comment : false
4576
4677 - when : pull_request.*
4778 name : ' PR Metadata'
@@ -51,6 +82,11 @@ mergeable:
5182 # Do not allow empty descriptions on PR.
5283 enabled : true
5384 message : ' Description can not be empty.'
85+ pass :
86+ - do : checks
87+ status : ' success'
88+ payload : *checks_success_payload
89+ leave_old_comment : false
5490 fail :
5591 - do : checks
5692 status : ' failure'
@@ -127,6 +163,11 @@ mergeable:
127163 > ## README out of date
128164 >
129165 > Please update the README.md by running `make readme` and commit the changes.
166+ pass :
167+ - do : checks
168+ status : ' success'
169+ payload : *checks_success_payload
170+ leave_old_comment : false
130171 validate :
131172 - do : dependent
132173 files : ['README.md', 'README.yaml']
@@ -147,6 +188,10 @@ mergeable:
147188 - do : comment
148189 payload :
149190 body : This is old. Is it still relevant?
191+ - do : checks
192+ status : ' success'
193+ payload : *checks_success_payload
194+ leave_old_comment : false
150195
151196 - when : pull_request.*
152197 name : ' PR Size'
@@ -160,7 +205,12 @@ mergeable:
160205 fail :
161206 - do : labels
162207 add : [ 'size/M' ]
163- delete : [ 'size/S', 'size/M', 'size/L', 'size/XL' ]
208+ delete : [ 'size/S', 'size/M', 'size/L', 'size/XL' ]
209+ pass :
210+ - do : checks
211+ status : ' success'
212+ payload : *checks_success_payload
213+ leave_old_comment : false
164214
165215 - when : pull_request.opened
166216 name : " Greeting"
0 commit comments