-
Notifications
You must be signed in to change notification settings - Fork 462
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
add PersonalAccessTokenApi #934 #1150
add PersonalAccessTokenApi #934 #1150
Conversation
* Rotates the given personal access token. | ||
* The token is revoked and a new one which will expire in one week is created to replace it. | ||
* Only working with GitLab 16.0 and above. | ||
* |
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.
Usually we mention the endpoint called in the javadoc (easier to find later), can you add something like:
* <pre><code>GitLab Endpoint: POST /personal_access_tokens/self/rotate</code></pre>
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.
Please add a json file in src/test/resources/org/gitlab4j/api
and a test case in TestGitLabApiBeans
for this new model class
01371f3
to
77cf7d2
Compare
I have rebased the source branch of this PR (
Be aware that your local branch If you need to do one more changes on this branch: I have changed the target branch of this PR to be I have added the missing test and did the necessary fixes |
Merged to |
Fixes #934