Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
benpankow committed Jul 10, 2024
1 parent 804636c commit ef1f9fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions actions/hybrid_branch_deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,20 @@ runs:
with:
script: |
const previousShas = process.env.PREVIOUS_SHA.split('\n').map(s => s.trim()).filter(s => s.length > 0);
console.log(previousShas);
let pullRequests = [];
for (const sha of previousShas) {
const pr = await github.rest.repos.listPullRequestsAssociatedWithCommit({
commit_sha: sha,
owner: context.repo.owner,
repo: context.repo.repo,
});
console.log(pr);
if (pr.data.length > 0) {
pullRequests.push(...pr.data);
}
}
console.log(pullRequests);
return pullRequests;
- name: Print PRs
Expand Down

0 comments on commit ef1f9fd

Please sign in to comment.