Open
Description
Related line:
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:
- GitHub sends a "ping" event when you add a new webhook, which can't be used and should not be used to trigger a build, it just have to be "acknowledged". Same is true for visualstudio.com / VSTS
- Another case is that every service sends
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 it- Note: bitrise.io does support Tag triggers since
So the point is, ShouldSkip
is too generic, the variable should be renamed to ShouldIgnoreEvent
or similar for better clarity.