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

Support alternative GitHub instances (GitHub Enterprise Server etc.) #10

Open
jwodder opened this issue Oct 19, 2023 · 0 comments
Open
Labels
blocked Cannot be implemented until something else happens enhancement New feature or request therefor low priority Less important than other things needs research More information is required

Comments

@jwodder
Copy link
Owner

jwodder commented Oct 19, 2023

labelmaker should gain an --api-url command-line option (defaulting to the value of the GITHUB_API_URL envvar, falling back to https://api.github.com) for specifying what GitHub API to interact with.

A preliminary implementation of this was removed in commit 6702d94.

Problems:

  • The only repository URLs (whether HTTP URLs specified on the command line or SSH URLs retrieved from a local Git repository's remote) that ghrepo can parse are those that refer to the main GitHub instance.

  • Given an API URL, how should the --hostname value to pass to gh auth token be determined?

    • It seems that, if a token is stored under example.com, then gh will return that token for all queries of subdomains under example.com.

As an alternative to --api-url, support could be added for specifying repositories in the form HOST/OWNER/REPO à la gh.

@jwodder jwodder added blocked Cannot be implemented until something else happens enhancement New feature or request therefor needs research More information is required labels Oct 19, 2023
@jwodder jwodder added the low priority Less important than other things label Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Cannot be implemented until something else happens enhancement New feature or request therefor low priority Less important than other things needs research More information is required
Projects
None yet
Development

No branches or pull requests

1 participant