Skip to main content
Use the commit GraphQL mutation to commit a project’s current changes to a branch. This is the API equivalent of saving to draft. For example, after you create a pipeline, commit to record the new pipeline in the project’s Git history.

Arguments

string
required
ID of the project to commit, as returned in data.addProject._id when you create the project.
string
required
Short description of the change.
string
required
Branch to commit to. Use dev in a project that uses Simple Git.

Response

string
Hash of the new commit.
string
Outcome of the commit, for example Success.