gitlab4j-api icon indicating copy to clipboard operation
gitlab4j-api copied to clipboard

'merge_request' events are not being returned by the API

Open heat23 opened this issue 3 years ago • 1 comments

I am using v5.0.1 with Gitlab 15.4-ee and when I call getEventsApi().getUserEvents(user,null, null, new Date(), after, null, 100); I am getting 'Note' and 'Issue' Target Types returned but am not getting any 'merge_request' data, for any user and any timeframe even though I know they exist. Does anyone know if there is a Gitlab ACL that needs to be modified to give me access to this data? Is this an issue with this library?

heat23 avatar Dec 07 '22 23:12 heat23

@gmessner Greg - Do you have any idea what may be going on here? I've spent hours on this but unable to figure it out. When I hit the Gitlab API (/api/v4/users/315/event) with CURL or a Java HTTP client, I can see the response "target_type": "MergeRequest",, however when using gitlab4j, I am getting "targetType":null. Is there an object mapping issue with the library due to the camel case nature of "MergeRequest"

heat23 avatar Dec 08 '22 19:12 heat23