@@ -106,14 +106,16 @@ const getPRs = async () => {
106
106
prs = prs . filter ( ( { checks, reviews, html_url, number, title } ) => {
107
107
if ( hasFailingChecks ( checks ) ) {
108
108
slackNotification ( slack . failingChecks ( { html_url, number, title } ) ) ;
109
- if ( number === currPrNumber ) core . setFailed ( 'Failing checks.' ) ;
109
+ if ( number === currPrNumber )
110
+ core . setFailed ( `Failing checks on the current PR ${ number } ` ) ;
110
111
return false ;
111
112
}
112
113
113
114
const approvals = reviews . filter ( ( { state } ) => state === 'APPROVED' ) ;
114
115
if ( approvals . length < requiredApprovals ) {
115
116
slackNotification ( slack . requireApprovals ( { html_url, number, title } ) ) ;
116
- if ( number === currPrNumber ) core . setFailed ( 'Insufficient approvals.' ) ;
117
+ if ( number === currPrNumber )
118
+ core . setFailed ( `Insufficient approvals on the current PR ${ number } ` ) ;
117
119
return false ;
118
120
}
119
121
@@ -210,7 +212,7 @@ const main = async (params) => {
210
212
}
211
213
try {
212
214
const stageToMainPR = await getStageToMainPR ( ) ;
213
- console . log ( 'has Stage to Main PR: ' , ! ! stageToMainPR ) ;
215
+ console . log ( 'has Stage to Main PR:' , ! ! stageToMainPR ) ;
214
216
if ( stageToMainPR ?. labels . some ( ( label ) => label . includes ( labels . SOTPrefix ) ) )
215
217
return console . log ( 'PR exists & testing started. Stopping execution.' ) ;
216
218
const prs = await getPRs ( ) ;
0 commit comments