-
Notifications
You must be signed in to change notification settings - Fork 758
Open
Labels
Description
Describe the feature or problem you'd like to solve
As a GHE user, I would like copilot to leverage my ghe.com session from gh like it does when I'm authenticated with my github.com session
Proposed solution
As a GitHub CLI user, I am authenticated with both GitHub.com and GHE accounts. gh determines the appropriate credentials based on various factors:
- Local git repository remotes
- Command line arguments that capture HOST/OWNER/REPO
GH_HOSTenv var
The benefit is a uniform streamline experience for both GitHub Copilot CLI and GitHub CLI users.
Example prompts or workflows
No response
Additional context
When I launch copilot authenticated to github.com:
When I launch copilot authenticated to GHE tenant:

mxie