Skip to content

Commit

Permalink
debugging comment payload
Browse files Browse the repository at this point in the history
  • Loading branch information
kenodegard committed Apr 5, 2023
1 parent b2db323 commit 9bdcc51
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions set-commit-status/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ runs:
with:
github-token: ${{ inputs.token }}
script: |
const [owner, repo] = '${{ github.repository }}'.split('/');
const sha = context.payload?.pull_request?.head?.sha || '${{ github.sha }}';
const { owner, repo, number } = context.issue;
const raw = await github.rest.pulls.get({
owner: owner,
repo: repo,
pull_number: number,
});
const sha = raw.data.head.sha;
core.debug(`owner: ${owner}`);
core.debug(`repo: ${repo}`);
core.debug(`sha: ${sha}`);
Expand Down

0 comments on commit 9bdcc51

Please sign in to comment.