Skip to content

Commit

Permalink
Revision 5be7732
Browse files Browse the repository at this point in the history
  • Loading branch information
qawolf-team committed Dec 6, 2023
1 parent e96abcd commit b594b85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38836,7 +38836,7 @@ async function runGitHubAction() {
repo,
});
const pr = pullRequestsResponse.data[0];
const branch = branchesResponse.data[0]?.name ?? pr?.head.ref;
const branch = pr?.head.ref ?? branchesResponse.data[0]?.name;
if (!pr) {
core.debug(`No PR found`);
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async function runGitHubAction() {
);

const pr = pullRequestsResponse.data[0];
const branch = branchesResponse.data[0]?.name ?? pr?.head.ref;
const branch = pr?.head.ref ?? branchesResponse.data[0]?.name;

if (!pr) {
core.debug(`No PR found`);
Expand Down

0 comments on commit b594b85

Please sign in to comment.