Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 0 additions & 97 deletions actions/setup/js/assign_issue.cjs

This file was deleted.

188 changes: 0 additions & 188 deletions actions/setup/js/assign_issue.test.cjs

This file was deleted.

9 changes: 8 additions & 1 deletion actions/setup/js/checkout_pr_branch.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
*/

const { getErrorMessage } = require("./error_helpers.cjs");
const { getGhEnvBypassingIntegrityFilteringForGitOps } = require("./git_helpers.cjs");
const { renderTemplateFromFile } = require("./messages_core.cjs");
const { detectForkPR } = require("./pr_helpers.cjs");
const { ERR_API } = require("./error_codes.cjs");
Expand Down Expand Up @@ -176,7 +177,13 @@ async function main() {
}

core.info(`Checking out PR #${prNumber} using gh CLI`);
await exec.exec("gh", ["pr", "checkout", prNumber.toString()]);

// Override GH_HOST with the real GitHub hostname so gh pr checkout can resolve
// the repository from git remotes. The DIFC proxy may have set GH_HOST to
// localhost:18443 which doesn't match any remote.
Comment thread
dsyme marked this conversation as resolved.
await exec.exec("gh", ["pr", "checkout", prNumber.toString()], {
env: getGhEnvBypassingIntegrityFilteringForGitOps(),
});

// Log the resulting branch after checkout
let currentBranch = "";
Expand Down
Loading
Loading