Skip to content

Commit 1965df8

Browse files
authored
Update check-for-integration-result.yml
1 parent 7fbf57a commit 1965df8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/check-for-integration-result.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)