Skip to content

Commit

Permalink
syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharthkp authored Nov 5, 2024
1 parent e49fe66 commit 93b7251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-for-integration-result.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: debug event
run: 'echo ${{ github.event }}'
run: 'echo ${{ toJson(github.event) }}'
- name: Get integration result comment
uses: actions/github-script@v7
with:
Expand All @@ -24,7 +24,7 @@ jobs:
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 93b7251

Please sign in to comment.