Skip to content

feat(enterprise): add support for enterprise GH urls - #94

Open
marks0mmers wants to merge 1 commit into
justinmk:mainfrom
marks0mmers:feat/gh-enterprise-url-support
Open

marks0mmers wants to merge 1 commit into
justinmk:mainfrom
marks0mmers:feat/gh-enterprise-url-support

Conversation

@marks0mmers

Copy link
Copy Markdown

Looks up the base URL for GitHub based on an env variable, falling back to gh repo view and caches result. Fixes #81

Looks up the base URL for GitHub based on an env variable, falling back to
`gh repo view` and caches result. Fixes justinmk#81
Comment thread lua/guh/gh.lua
if host_cache then
return host_cache
end
local host = vim.env.GH_HOST

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is GH_HOST coming from, is that documented by github?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it can be specified for gh commands (docs page)

@barrettruth barrettruth Nov 7, 2026 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Link the docs, then. I didn't know about this either :)

@marks0mmers
marks0mmers requested a review from justinmk October 28, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Mapping 'gX' only navigates to GitHub.com, not Enterprise GH servers

3 participants