Skip to content

Commit

Permalink
chore: add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Jul 10, 2024
1 parent dfe5006 commit 404a45d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ runs:
result-encoding: string
retries: 3
script: |
console.log('context.ref', context.ref);
const response = (
await github.rest.repos.listPullRequestsAssociatedWithCommit({
commit_sha: context.sha,
Expand All @@ -78,6 +80,8 @@ runs:
})
);
console.log('response', JSON.stringify(response, null, 2));
for (const pullRequest of response.data) {
if (
pullRequest.base.ref === context.ref.replace('/refs/heads/', '') &&
Expand Down

0 comments on commit 404a45d

Please sign in to comment.