You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letcomment=`Following you can find the validation changes against the ${branch} branch for the API${changedApis.length===1 ? '' : 's'}.\n\n`
152
154
if(changedApis.length>0){
153
-
letcomment=`Following you can find the validation changes for the API${changedApis.length===1 ? '' : 's'} you have modified.\n\n`
154
155
comment+='| API | Status | Request | Response |\n'
155
156
comment+='| --- | --- | --- | --- |\n'
156
157
for(constchangeofchangedApis){
157
158
comment+=buildDiffTableLine(change)
158
159
}
159
-
comment+=`\nYou can validate ${changedApis.length===1 ? 'this' : 'these'} API${changedApis.length===1 ? '' : 's'} yourself by using the ${tick}make validate${tick} target.\n`
160
-
161
-
core.setOutput('has_results','true')
162
-
core.setOutput('comment_body',comment)
163
160
}else{
164
-
core.setOutput('has_results','false')
161
+
comment+='No changes detected.'
165
162
}
163
+
comment+=`\nYou can validate ${changedApis.length===1 ? 'this' : 'these'} API${changedApis.length===1 ? '' : 's'} yourself by using the ${tick}make validate${tick} target.\n`
164
+
core.setOutput('comment_body',comment)
166
165
167
166
core.info('Done!')
168
167
}
@@ -236,4 +235,4 @@ function generateResponse (r) {
0 commit comments