Merge branches
Merges one branch into another. Merges into the same branch run one at a time.
A merge with conflicts saves nothing and answers 409 with the paths. To finish it, send the merge again with resolve covering them.
bearerAuthorizationBearer <token>namespace*stringA namespace of your organization, such as prod/app, or <org>:<namespace> for a public namespace of another one. Encode / as %2F.
application/json- body
from*stringThe branch to merge in.
^[A-Za-z0-9_-][A-Za-z0-9._-]*(\/[A-Za-z0-9_-][A-Za-z0-9._-]*)*$length <= 200into*stringThe branch that receives the merge. It may be protected.
^[A-Za-z0-9_-][A-Za-z0-9._-]*(\/[A-Za-z0-9_-][A-Za-z0-9._-]*)*$length <= 200message?string1 <= length <= 10000dry_run?booleanOnly report the conflicts a merge would have now, less those resolve covers.
falseresolve?array<>How to settle conflicts, by path. A path's resolution also settles the conflicts inside it. With every conflict covered, the merge lands as one merge commit with both parents.
items <= 10000The merge landed, or the dry run's conflicts.
application/json- response
head*|The new head of into, when the merge landed.
conflicts*array<string>Paths changed on both sides in ways that do not combine.
curl -X POST 'https://example.com/v1/namespaces/string/merges' \ -H 'Content-Type: application/json' \ -d '{ "from": "string", "into": "string"}'{ "head": "string", "conflicts": [ "string" ]}