--- title: "ADR 0041: GitLab merge request updates without commits only proceed for label changes" --- * Status: accepted * Code: [`pkg/provider/gitlab/detect.go`](https://github.com/tektoncd/pipelines-as-code/blob/main/pkg/provider/gitlab/detect.go) ## Context GitLab sends `action: update` on a merge request for two very different things: a push of new commits, and a change to metadata such as labels, title, description or assignees. The payload carries `OldRev` only in the commit case. An empty `OldRev` with `update` means nothing was pushed. Running a pipeline for every metadata update would retrigger CI on a title edit. Ignoring every update would miss the push. Neither is acceptable, so the metadata case needs its own rule. ## Decision * `update` with an empty `OldRev` is accepted only when `hasOnlyLabelsChanged` is true. Any other metadata change is dropped with the reason that the update is not supported. * `update` with a non-empty `OldRev` is a commit update and takes the normal push path, bypassing the label filter. * `open` and `reopen` are accepted unconditionally. ## Consequences * A pull request whose title or description is edited but whose labels are untouched does not retrigger CI, and gets no visible explanation beyond the log line. * The empty-`OldRev` convention is the only signal used. A GitLab version that omits `OldRev` on a commit push would make every push look like a metadata update. * Label-based triggering depends on this filter: removing it would make `on-event: pull_request_labeled` fire on every edit instead of only on label changes.