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

UserApi implement createPersonalAccessToken #963

Merged
merged 2 commits into from
Jun 13, 2023
Merged

Conversation

jmini
Copy link
Collaborator

@jmini jmini commented Apr 22, 2023

  • adds the corresponding method
  • adds missing scopes
  • factors out common logic

Fixes #653


This is a rework of #686 from @maltem-za (his PR can't be edited):

  • Rebased on top of the main branch
  • Renaming ImpersonationToken into PersonalAccessToken is breaking from a java point of view and because of the nested enum ImpersonationToken.Scope it is really difficult to change in a backward compatible way.
    • This PR is keeping the old name
    • Once this is merged, on the branch 6.x the class can be renamed.

@jabby
Copy link
Collaborator

jabby commented Apr 22, 2023

@jmini there are test failures. Can you check?

@jmini
Copy link
Collaborator Author

jmini commented Apr 24, 2023

Yes. I saw it, I will have a look…

@jmini
Copy link
Collaborator Author

jmini commented May 25, 2023

The tests were not working because the GitLab version used in the tests is too old.

I changed them for now, can be revisited once we have test-containers (see #925)

@jabby jabby merged commit 6a9d929 into gitlab4j:main Jun 13, 2023
@jmini jmini mentioned this pull request Aug 21, 2023
@jmini jmini mentioned this pull request Sep 28, 2023
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

Successfully merging this pull request may close these issues.

no support for users/personal_access_tokens
3 participants