[go: up one dir, main page]

Skip to content

Add option to skip CI when creating a new branch via Gitlab API

Proposal

Add option to the Branches API endpoint to skip CI when creating a new branch.

Ideally, I'd like to be able to create a branch using the Branches API endpoint, but not activate any CI pipelines which may exist as part of the new branch creation. Something like:

curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/repository/branches?branch=newbranch&ref=main&skip_ci=true"

Edited by Michael Schmitt