-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Closed
Copy link
Labels
bugSomething isn't workingSomething isn't workingpriority-2Affects more than a few users but doesn't prevent core functionsAffects more than a few users but doesn't prevent core functions
Description
Describe the bug
On a fresh install of gh, if you don't run ever gh auth login and you use GH_ENTERPRISE_TOKEN instead, you get a confusing error message when running most, but not all commands: could not find hosts config: not found.
This is because the %userprofile%\.config\gh\ folder and it's content never gets created.
Steps to reproduce the behavior
Without ever having run gh auth login:
$env:GH_ENTERPRISE_TOKEN="<TOKEN>"
cd <some_repo>
gh pr create --title "Test PR" --body "test"
could not find hosts config: not found
Expected vs actual behavior
Either for the command to work, or an error message requiring the use of gh auth login
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingpriority-2Affects more than a few users but doesn't prevent core functionsAffects more than a few users but doesn't prevent core functions