Open puerco opened 1 month ago
I noticed that comments have their own custom action type:
but the rest of the payload types have their action typed as string:
so I didn't add any more specific ones.
This is not modifying any of them, only defining them
My main goal as a user is to expose the values of the action from the library to applications. I didn't want to modify the payload types in event_webhook_types.go
to use them not to break compatibility but I can if you are fine with it! It would certainly be better.
Yeah while it might cause a few issues, I think it's the best what to actually guarantee the list will stay up-to-date over time. So I would say go ahead and update the EventType
fields to use this new const.
This PR defines constants for all the event webhook action types sent by GitLab.
It also reuses
EventActionCreate
andEventActionUpdate
to define the custom CommentEventType values already defined in the module.