Skip to content

Rename ShouldSkip, for clarity of what this flag is meant to mean (should mean ~ Ignore This Event) #9

Open
@viktorbenei

Description

@viktorbenei

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 get tag 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions