Skip to content

Commit a16c510

Browse files
authored
Use context in 'Find associated pull request' script (#626)
1 parent 35f0a40 commit a16c510

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/comment_coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
script: |
3232
const response = await github.rest.pulls.list({
3333
owner: "${{ github.repository_owner }}",
34-
repo: "${{ github.event.workflow_run.repository.name }}",
34+
repo: context.payload.workflow_run.repository.name,
3535
state: "open",
36-
head: "${{ github.event.workflow_run.head_repository.owner.login }}:${{ github.event.workflow_run.head_branch }}",
36+
head: `${context.payload.workflow_run.head_repository.owner.login}:${context.payload.workflow_run.head_branch}`,
3737
});
3838
3939
return response.data[0]?.number ?? "";

0 commit comments

Comments
 (0)