Skip to content

Error running "gh pr checkout" - none of the git remotes configured for this repository correspond to the GH_HOST environment variable. Try adding a matching remote or unsetting the variable #26036

Description

@dsyme

We have another GH_HOST problem when using "/repo-assist Fix the CI of this PR" command trigger comments, i.e. a issue_comment event in a PR:

From failure https://github.com/fsprojects/FSharp.Formatting/actions/runs/24345312242/job/71084563768

Run actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3
Detected issue_comment event on PR #1106, will use gh pr checkout
Event: issue_comment
Pull Request #1106
📋 PR Context Details
🔄 Checkout Strategy
Warning: ⚠️ Fork PR detected - gh pr checkout will fetch from fork repository
Checking out PR #1106 using gh CLI
/usr/bin/gh pr checkout 1106
none of the git remotes configured for this repository correspond to the GH_HOST environment variable. Try adding a matching remote or unsetting the variable
❌ Checkout Error Details
Error: ERR_API: Failed to checkout PR branch: The process '/usr/bin/gh' failed with exit code 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions