|
return eventParsing(BuildEvents, events, payload) |
Forwarding this event as a BuildEvents requires that the user subscribes to both
JobEvents
and
BuildEvents
when they call
hook.Parse(...)
.
Otherwise the end up with the error message in
|
return nil, ErrEventNotFound |
This leads to confusing code, when one wants to actually subscribe to JobEvents, but must handle it later on as gitlab.BuildEventPayload
.