Skip to content
GitmoapAPIBeta
Schema

MergeStackResult

The outcome of merging a whole stack from the bottom up. The merge requests in merged stay merged even if a later one fails; merging stops at failed, and everything above it is skipped.

Shape

  • mergedarray of MergeRequestId (integer · int64)
  • failedMergeStackFailure or nulloptional
    • The MergeStackFailure schema
    • merge_request_idMergeRequestId (integer · int64)
    • messagestring
    • reasonstringA short kind for the failure (e.g. conflict, forbidden, bad_request).
    • codestring or nulloptionalThe specific refusal's code, when the merge was refused with one — PIPELINES_NOT_GREEN, MERGE_CONFLICTS — so a client can tell which gate stopped the stack without reading the message.
  • skippedarray of MergeRequestId (integer · int64)optional

Example

Synthesized example
{
"merged": [
42,
42
],
"failed": {
"merge_request_id": 42,
"message": "Stream pipeline status into the run header",
"reason": "reason-c92c",
"code": "code-d59a"
},
"skipped": [
42
]
}

Graph

Used inside

No schema contains this one.

Used by

Sent by 0 operations

No operation takes it as a request body.