Skip to content

Commit

Permalink
Refactor integration comments filter condition
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthkp authored Nov 5, 2024
1 parent a61dc53 commit 828aa61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/check-for-integration-result.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo
});
console.log(result)
const integrationComments = result.data.filter(c => c.user.login == 'primer-integration[bot]' && c.body.includes('test-result'))
const integrationComments = result.data.filter(c => c.user.login == 'primer-integration[bot]') // && c.body.includes('test-result'))
console.log(integrationComments)
const latestComment = integrationComments.sort(c => c.createdAt)[0]
Expand Down

0 comments on commit 828aa61

Please sign in to comment.