--- title: "ADR 0101: Skip-CI markers do not suppress GitOps and incoming-webhook events" --- * Status: accepted * Code: [`pkg/pipelineascode/pipelineascode.go`](https://github.com/tektoncd/pipelines-as-code/blob/main/pkg/pipelineascode/pipelineascode.go) ## Context A skip-CI marker in the head commit message sets `HasSkipCommand` on the event. `Run` checks it a second time as a safety net, after the early check in the sinker (`sinker.processEvent()`), so that events that bypass that check, including tests calling `Run()` directly, are still skipped. Some events are explicit requests to run CI and carry the same commit message as the event they follow. ## Decision * `Run` returns without running anything when `HasSkipCommand` is set, unless the event type is an ops-comment event (`opscomments.IsAnyOpsEventType`) or `incoming`. * The tests cover the incoming case: an incoming webhook with a skip-CI marker in its head commit message still runs the matched PipelineRuns. ## Consequences * A user who wrote `/test` or called an incoming webhook always gets a run, whatever the commit message says. * Any new event type that is an explicit user request has to be added to this condition, or it is skipped silently with only an info log. * The reason for the primary check living in the sinker is performance, per the removed source comment; the sinker is not part of this package.