Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there support for github enterprise #285

Open
nick4eva opened this issue Jun 23, 2023 · 4 comments
Open

Is there support for github enterprise #285

nick4eva opened this issue Jun 23, 2023 · 4 comments

Comments

@nick4eva
Copy link

nick4eva commented Jun 23, 2023

Is your feature request related to a problem? Please describe.
I'd like to have github enterprise support so I can use this dashboard for my work repos

Describe the solution you'd like
I'd like to have an option in config.yml to specify which github server to use (regular one or github enterprise)

Describe alternatives you've considered
I've tried just map my work repos to my work org, but obviously that didn't work since gh-dash doesn't know address of our github enterprise server and have no personal access token to read data

Additional context

@dlvhdr
Copy link
Owner

dlvhdr commented Jun 23, 2023

I'll be happy to get contributions for this.
I dont have a github enterprise account so I have no idea how is it different from a regular one. Also, I wouldnt be able to test this.

@nick4eva
Copy link
Author

I've realized that it will work if I'll pass the GH_HOST and GH_ENTERPRISE_TOKEN env vars before running gh-dash (because go-gh package is used under the hood which is recognizing those env vars).
And it works actually 🎉
Not sure though how to make it to use those host and token permanently, currently I need to set up them each time I've started shell.
Also, facing issues with some missing icons (not sure if that's related to the fact that I'm using Nerd Fonts)
image
image

@donbex
Copy link

donbex commented Oct 12, 2023

I don't think this requires support at the extension level. With the gh auth login command you can already log into a GHE account and securely store the credentials, so that all later gh commands will refer to that GHE account, including gh dash.

@danriedl
Copy link

I use a alias and a env variable:
My .zshrc:

#GitHub
alias ghe='GH_HOST=ourgithub.enterprise.com gh'
export GH_ENTERPRISE_TOKEN="$(cat $HOME/.git_token_enterprise)"

so by calling gh i refer to github.com and with ghe to the internal one.

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

No branches or pull requests

4 participants