diff --git a/.github/workflows/integration-test-review.yml b/.github/workflows/integration-test-review.yml index c9ed1142..66a25e05 100644 --- a/.github/workflows/integration-test-review.yml +++ b/.github/workflows/integration-test-review.yml @@ -40,11 +40,11 @@ jobs: uses: actions/github-script@v7 with: script: | - const prNumber = await github.rest.repos.listPullRequestsAssociatedWithCommit({ + const prNumber = (await github.rest.repos.listPullRequestsAssociatedWithCommit({ commit_sha: context.sha, owner: "${{ github.event.workflow_run.head_repository.owner.login }}", repo: "${{ github.event.workflow_run.head_repository.name }}", - }).data[0]?.number; + })).data[0]?.number; if (prNumber) { github.rest.issues.createComment({