File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,14 @@ jobs:
2424
2525 const result = await github.rest.issues.listComments(issue);
2626 const integrationComments = result.data.filter(c => c.user.login == 'primer-integration[bot]' && c.body.includes('<!-- test-result'))
27- console.log(integrationComments)
28- if (integrationComments.length === 0) return
27+ if (integrationComments.length === 0) {
28+ console.log('Integration comment with test-result not found')
29+ return
30+ }
2931
3032 const latestComment = integrationComments.pop()
31- const pass = latestComment.includes(':green-circle:')
33+ console.log(latestComment.body)
34+ const pass = latestComment.body.includes(':green-circle:')
3235
3336 await github.rest.issues.addLabels({
3437 ...issue,
You can’t perform that action at this time.
0 commit comments