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

Support for Confidential Note Webhook

Open MiguelAngelLV opened this issue 2 years ago • 1 comments
trafficstars

The webhook listener don't support Confidential Note:

org.gitlab4j.api.GitLabApiException: Unsupported X-Gitlab-Event, event Name=Confidential Note Hook

MiguelAngelLV avatar Jan 16 '23 14:01 MiguelAngelLV

The confidential note hook is barely documented on: https://docs.gitlab.com/ee/user/project/integrations/webhook_events.html#comment-events

It seems that this would be an event similar to NoteEvent with a different X_GITLAB_EVENT value.

Maybe instead of duplicating NoteEvent as ConfidentialNoteEvent a common class between those two can be created. --> AbstractNoteEvent

You can open a PR with those changes.

jmini avatar Apr 13 '23 12:04 jmini