-
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
How can I get the real account information of the committer from the '/projects/:id/repository/commits' API? #1106
Comments
can I get uid from this API? |
It seems that there is something wrong. Can you enable logging of HTTP request/response to understand what is going on? Here is how: GitLabApi(..., ....)
.withRequestResponseLogging(Level.INFO); Thank you in advance |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
POM:
API:
GET /projects/:id/repository/commits
my Code :
as you can see from the screenshot:
![image](https://private-user-images.githubusercontent.com/48505397/316462967-23c26998-e02f-4e28-8a7f-aa2c43756983.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NzkzODUsIm5iZiI6MTczODg3OTA4NSwicGF0aCI6Ii80ODUwNTM5Ny8zMTY0NjI5NjctMjNjMjY5OTgtZTAyZi00ZTI4LThhN2YtYWEyYzQzNzU2OTgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDIxNTgwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUzMDFjOTk2OTg1N2ZhODQ3Zjg1NzNlZDU1MTIzZDFkZmMxNjc3M2I3MDUxNTA2OTExNWI5YzhlYzMxY2FlYTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.8z6qHmhdlyRqyAQ70zB7quTPUGLpJbdpc3Ntcfe0IdQ)
the field 'author' is null ,and the values of the authorEmail and authorName come from the user's local settings, rather than the actual user email and username on GitLab
![image](https://private-user-images.githubusercontent.com/48505397/316464349-9d5acd3a-ea33-4526-af9a-3402a60658c7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NzkzODUsIm5iZiI6MTczODg3OTA4NSwicGF0aCI6Ii80ODUwNTM5Ny8zMTY0NjQzNDktOWQ1YWNkM2EtZWEzMy00NTI2LWFmOWEtMzQwMmE2MDY1OGM3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDIxNTgwNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI4NTFkNDJlNzNhMWM1MGM0YTkxOTRjNmZiN2Q1NDI5MzFlMGQ4Y2JkZmQ4YmZjMzY1N2E4ZGRhZmFmNDA5MzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.L-ADr3AuS9uxdlRj7TQnBPTqQhbXvqlYzKza1O9FqGo)
thanks ~
The text was updated successfully, but these errors were encountered: