Skip a push's pipelines
Push a commit without starting its pipelines, with [skip ci] in the commit message or the ci.skip push option, and what skipping does not affect.
Available in repositories branchd reads pipeline files for. It is switching repositories on one at a time: until yours is, it keeps running its
.forge-ci.yamlor.xeonr-ci.yaml. See What is available.
Some commits do not need a run: a typo in a README, a comment, a merge that only tidies up. Say so in the commit message and the push starts no pipeline.
git commit -m "docs: fix a typo [skip ci]"
git pushThe markers
Put one of these anywhere in the message of the last commit you push, in any letter case:
| Marker | Also read by |
|---|---|
[skip ci] | GitLab, GitHub |
[ci skip] | GitLab, GitHub |
[no ci] | GitHub |
[skip actions] | GitHub |
[actions skip] | GitHub |
Only the head commit is read: the commit a pushed branch now points at, the commit a pushed tag names, or a pull request's newest commit. A marker in an earlier commit of the same push does nothing. The list is fixed; it is not a setting.
Or leave the message alone and skip with a push option:
git push -o ci.skipWhat is skipped
| A marker in the head commit | git push -o ci.skip | |
|---|---|---|
| A push to a branch | Skipped | Skipped |
| A push of a tag | Skipped, by the message of the commit the tag names | Skipped |
| A pull request's run for a new commit | Skipped | Runs |
| A merge whose merge or squash commit carries a marker | Skipped | – |
An annotated tag's own message is not read, only its commit's. The push option does not skip a pull request's run, as on GitLab.
What is never skipped
- A run started by hand: Run pipeline,
branchd run start, the API'sCreateRun. - A re-run: Re-run,
branchd run retry <run>. - A schedule.
- A run another pipeline triggers.
- The merge queue's run of a queued pull request.
A skipped push to the default branch still registers the on: schedule
entries of its pipeline files.
A skip is shown, and it is not a pass
Each pipeline the push would have started keeps a run that never started. It is listed with the commit and the pull request as cancelled, with the reason Skipped, and its page says why:
Skipped: the commit's message contains [skip ci]; re-run it to start itbranchd run list, branchd run show and the MCP's run and check tools
show the same state and reason. A pipeline whose on: would not have run for
the push anyway shows nothing, as before.
A skipped run reports no job's check, and its pipeline check is cancelled, so it satisfies no required check. A pull request whose newest commit was pushed with a marker cannot merge into a branch with required checks, or join its merge queue, until those checks pass:
required check test did not run on 3f2a1c9: its pipeline was skipped (the
commit's message contains [skip ci]), and a skipped run passes no required checkA branch with no required checks merges as it always did.
Run it after all
Re-run the skipped run. It starts as the push or pull request run it would
have been, so the pipeline file needs no on: manual:
branchd run list --state cancelled # find the skipped run's number
branchd run retry 42Or push a commit without the marker. In the console, open the skipped run and choose Re-run.