Skip to content

Commit 9bdcc51

Browse files
committed
debugging comment payload
1 parent b2db323 commit 9bdcc51

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

set-commit-status/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@ runs:
2727
with:
2828
github-token: ${{ inputs.token }}
2929
script: |
30-
const [owner, repo] = '${{ github.repository }}'.split('/');
31-
const sha = context.payload?.pull_request?.head?.sha || '${{ github.sha }}';
30+
const { owner, repo, number } = context.issue;
31+
const raw = await github.rest.pulls.get({
32+
owner: owner,
33+
repo: repo,
34+
pull_number: number,
35+
});
36+
const sha = raw.data.head.sha;
3237
core.debug(`owner: ${owner}`);
3338
core.debug(`repo: ${repo}`);
3439
core.debug(`sha: ${sha}`);

0 commit comments

Comments
 (0)