-
Notifications
You must be signed in to change notification settings - Fork 460
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
feat: implement createPersonalAccessToken #686
base: 6.x
Are you sure you want to change the base?
Conversation
renames ImpersonationToken > PersonalAccessToken and adds missing scopes, factors out common logic
@@ -9,12 +9,12 @@ | |||
import com.fasterxml.jackson.annotation.JsonCreator; | |||
import com.fasterxml.jackson.annotation.JsonValue; | |||
|
|||
public class ImpersonationToken { | |||
public class PersonalAccessToken { |
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.
Renaming the class like this is a breaking change for the API consumer.
@maltem-za since the change is breaking, would it be OK to do in our next major version |
Hi @jmini, yes of course, whatever works for you. I switched to my own fork anyway as I needed this at the time that I opened the PR (it's >2 years old now). You're right of course that it's a breaking change, but in my mind it's a pretty simple refactor on the consumer side. I stopped opening new PRs because it didn't seem likely they'd get merged, but you may be interested in integrating some of the other changes I've been making in my fork (mostly keeping tests working for later GitLab versions, and more recently I implemented OAuth2 access token refresh here). Happy to help where I can, time permitting :) |
@maltem-za: Probably you did not check As for working on a fork or in the upstream project, this is always a dilemma. |
@jmini Hmm, I can't find that option. Do I need to open a new PR? I'd be happy to contribute more directly again if things start moving a bit faster, and I would also prefer to not have to maintain a fork. Unfortunately I won't be able to make the switch to Java 11+ that quickly, but I guess the plan is to run 5.x and 6.x in parallel for some time anyway. I'll keep an eye on how things progress. Thanks for picking this up! |
I have opened a new PR for this #963. On the main branch (version |
Add support for Personal Access Token creation (#653)