Closed aritas1 closed 4 years ago
This PR handles the inconsistencies for gitlab system hook keys to the project webhook keys.
All system hooks (except the merge_request) have different naming for the object defining key: object_kind vs. event_name
merge_request
object_kind
event_name
I added some test data from the official documentation (version 12.10) for the system events and added handling for the event_name keys.
Due to the possibility? that some odd/old version was emitting object_kind keys for the events, i left the old handling in place.
This PR handles the inconsistencies for gitlab system hook keys to the project webhook keys.
All system hooks (except the
merge_request
) have different naming for the object defining key:object_kind
vs.event_name
I added some test data from the official documentation (version 12.10) for the system events and added handling for the
event_name
keys.Due to the possibility? that some odd/old version was emitting
object_kind
keys for the events, i left the old handling in place.