-
Notifications
You must be signed in to change notification settings - Fork 12
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
A few Proposal(s) : CLI args improvement, GitHub Enterprise support #11
Comments
Hi @tprasadtp! 👋 Thank you for your suggestions. Here are my thoughts on the individual items:
|
Thank you,
Yes, because we use tokens, username is not necessary if we authenticate with headers. I thought it would be better because that's one less argument to specify https://developer.github.com/v3/#oauth2-token-sent-in-a-header
I understand that. I would expect the following to be the help message. But to see that I have to specify
I am not exactly sure how to overcome that other than making them arguments to subcommands.
I need to test it with custom CA and then I will submit a PR.
I just found out that GitHub packages does not support un-authenticated docker pulls yet.:(
If docker images are provided then I don't think its necessary.
That's a good idea. |
Hey @hackebrot
I would like to propose the following changes
Remove
-u | --username
option and use token via HTTP headers.It is not necessary and github will soon stop supporting password based authentication to its APIs. username is not necessary if HTTP headers are used, see this.
This might be better suited under bugs. Because how
click
args are defined,--help
is uselessfor
fetch
andsync
without specifying-t | --token
as it gives an error.Support GitHub enterprise
I think adding an optional argument which defaults to
api.github.com
should be sufficient. (for SSL system certs should be used, as its the most sane option)for option above, and for the token I would like to propose that we use
GITHUB_URL
andGITHUB_TOKEN
as env variables as they are better in my opinion thanLABELS_TOKEN
Because above changes are breaking changes we need to bump minor version
Docker
I am not proposing that you provide docker images. because I already do it anyway and will be happy to maintain the images on GitHub and DockerHub.
May be I am spoiled by Go. Use Pyinstaller for packaging it into a binary? its always nice to have a self contained static binary.(I know about libc requirements) Though, I am not too keen on this one.
This one may be my peeve,
isort
andblack
for formatting?I have already completed work on most of them, (needs a bit more testing for GitHub Enterprise) and will be happy to submit PR(s) if you are willing to accept any of these.
The text was updated successfully, but these errors were encountered: