We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In all the webhook events the user is represented as:
{ "id": 1, "name": "Administrator", "username": "root", "avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=40\u0026d=identicon", "email": "admin@example.com" }
So not all the attributes that you would get when reading a user get are available.
Example: "Note Hook (comment event)"
gitlab4j-api/src/main/java/org/gitlab4j/api/webhook/NoteEvent.java
Line 18 in ea9042e
It should be something like EventUser that contains only the 5 attributes that are available, otherwise when you read the event like this:
EventUser
public static void printWebUrl(NoteEvent event) { System.out.println(event.getUser().getWebUrl()); }
And this will always return null since the value was not sent by GitLab.
null
The text was updated successfully, but these errors were encountered:
Change User representation in Webhooks
f4dc131
Fixes gitlab4j#927
8e7b41d
Change User representation in Webhooks (#952)
5d06164
Fixes #927
Fixed with PR #952
Sorry, something went wrong.
No branches or pull requests
In all the webhook events the user is represented as:
So not all the attributes that you would get when reading a user get are available.
Example: "Note Hook (comment event)"
gitlab4j-api/src/main/java/org/gitlab4j/api/webhook/NoteEvent.java
Line 18 in ea9042e
It should be something like
EventUser
that contains only the 5 attributes that are available, otherwise when you read the event like this:And this will always return
null
since the value was not sent by GitLab.The text was updated successfully, but these errors were encountered: