Skip to content

Handle 'git push -o ci.skip'

Jonathon Reinhart requested to merge (removed):18667-handle-push-opts into master

Now git push -o ci.skip, just like including [ci-skip] in the commit message of the HEAD commit, the pipeline will be created, but marked as skipped:

image

Also, only ci.skip is supported; no other variants are accepted. Since this is a new feature, and AFAIK no other CI services support this feature, I see no reason to accept anything else.


What does this MR do?

This MR implements git push -o ci.skip, which will skip a CI pipeline via push option, rather than [ci-skip] in the commit message.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Requires gitlab-shell!166 (merged) to be functional, although an using older gitlab-shell will have no negative impact.

Closes #18667 (closed)

Edited by Jonathon Reinhart

Merge request reports