Rename ShouldSkip
, for clarity of what this flag is meant to mean (should mean ~ Ignore This Event)
#9
Labels
ShouldSkip
, for clarity of what this flag is meant to mean (should mean ~ Ignore This Event)
#9
Related line:
bitrise-webhooks/service/hook/common/common.go
Line 15 in 01ecc72
Should be renamed & add more comment.
This flag is meant to be used when the whole event should be discarded/skipped, with a success response. Examples:
tag
push events as "code commit" event. If you enable code push events for the webhook you'll gettag
pushes too. Tag pushes are not handled by Bitrise.io right now, but returning an error every time would not be appropriate either, so we just acknowledge and skip itSo the point is,
ShouldSkip
is too generic, the variable should be renamed toShouldIgnoreEvent
or similar for better clarity.The text was updated successfully, but these errors were encountered: