-
Notifications
You must be signed in to change notification settings - Fork 22
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
Migrate from organisation keys to PATs #79
Migrate from organisation keys to PATs #79
Conversation
Is this a breaking change? Should the major version be bumped? |
Yes, and yes. I've not done any versioning changes here as those should be done as part of the release step. |
@nlewo (sorry for the ping) anything I can do to help progress this along? Keen to get PATs supported ASAP so it can be included in the terraform provider too. |
Hello @RealOrangeOne I actually would prefer to keep the support of the API key even if it is deprecated, because this is still used by a lot of people. Also, some other projects decided to still support both (lego for instance). |
I've pushed some tweaks. The API isn't perfect, as we still prompt for both values even though only one is used - perhaps there should be 2 constructors instead? |
@RealOrangeOne I think we should keep a single constructor since we are supposed to remove the
Sorry, i don't understand what do you mean by "prompting both values". Is it the king library which prompt for both? From my point of view, it would be good enough to fail in the constructor when both the API key and the PAT are empty strings (and displaying a help message suggesting to use a PAT). |
My point here was mostly that the constructor takes 2 values, even though we only use one. I like the idea of showing an error when both are provided - I think that covers the usability issues nicely. |
`token` should be the default
@nlewo over to you! |
Co-authored-by: lewo <lewo@abesis.fr>
This could be annoying to downstream users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, i renamed Token
to PersonalAccessToken
Fixes #78