Skip to content
GitmoapAPIBeta
Schema

StackView

The full stack a merge request belongs to — the ordered downstack path to the base plus the upstack tree of dependents.

Shape

  • anchor_mr_idMergeRequestId (integer · int64)
  • base_branchBranchName (string)
  • downstackarray of StackNode
    • The StackNode schema
    • commits_behindinteger · int320–∞Advisory — how far behind its target this MR's source is.
    • is_anchorboolean
    • merge_request_idMergeRequestId (integer · int64)
    • positioninteger · int320–∞
    • restack_requiredbooleanPrecise — the MR's stored restack_required marker (squash downstack).
    • source_branchBranchName (string)
    • statusMergeRequestStatusopenmergedclosed
    • target_branchBranchName (string)
    • titleMrTitle (string)
    • childrenarray of StackNodeoptionalUpstack dependents (a branch may have several). Empty in the downstack path.
      • The StackNode schema
      • commits_behindinteger · int320–∞Advisory — how far behind its target this MR's source is.
      • is_anchorboolean
      • merge_request_idMergeRequestId (integer · int64)
      • positioninteger · int320–∞
      • restack_requiredbooleanPrecise — the MR's stored restack_required marker (squash downstack).
      • source_branchBranchName (string)
      • statusMergeRequestStatusopenmergedclosed
      • target_branchBranchName (string)
      • titleMrTitle (string)
      • childrenarray of StackNodeoptionalUpstack dependents (a branch may have several). Empty in the downstack path.
        • The StackNode schema
        • commits_behindinteger · int320–∞Advisory — how far behind its target this MR's source is.
        • is_anchorboolean
        • merge_request_idMergeRequestId (integer · int64)
        • positioninteger · int320–∞
        • restack_requiredbooleanPrecise — the MR's stored restack_required marker (squash downstack).
        • source_branchBranchName (string)
        • statusMergeRequestStatusopenmergedclosed
        • target_branchBranchName (string)
        • titleMrTitle (string)
        • childrenarray of StackNodeoptionalUpstack dependents (a branch may have several). Empty in the downstack path.
  • repository_idRepositoryId (string · uuid)
  • sizeinteger · int320–∞
  • stack_healthStackHealthcleanout_of_dateneeds_restackdegradedcycle_detectedOverall health of a reconstructed stack.
  • upstackarray of StackNode
    • The StackNode schema
    • commits_behindinteger · int320–∞Advisory — how far behind its target this MR's source is.
    • is_anchorboolean
    • merge_request_idMergeRequestId (integer · int64)
    • positioninteger · int320–∞
    • restack_requiredbooleanPrecise — the MR's stored restack_required marker (squash downstack).
    • source_branchBranchName (string)
    • statusMergeRequestStatusopenmergedclosed
    • target_branchBranchName (string)
    • titleMrTitle (string)
    • childrenarray of StackNodeoptionalUpstack dependents (a branch may have several). Empty in the downstack path.
      • The StackNode schema
      • commits_behindinteger · int320–∞Advisory — how far behind its target this MR's source is.
      • is_anchorboolean
      • merge_request_idMergeRequestId (integer · int64)
      • positioninteger · int320–∞
      • restack_requiredbooleanPrecise — the MR's stored restack_required marker (squash downstack).
      • source_branchBranchName (string)
      • statusMergeRequestStatusopenmergedclosed
      • target_branchBranchName (string)
      • titleMrTitle (string)
      • childrenarray of StackNodeoptionalUpstack dependents (a branch may have several). Empty in the downstack path.
        • The StackNode schema
        • commits_behindinteger · int320–∞Advisory — how far behind its target this MR's source is.
        • is_anchorboolean
        • merge_request_idMergeRequestId (integer · int64)
        • positioninteger · int320–∞
        • restack_requiredbooleanPrecise — the MR's stored restack_required marker (squash downstack).
        • source_branchBranchName (string)
        • statusMergeRequestStatusopenmergedclosed
        • target_branchBranchName (string)
        • titleMrTitle (string)
        • childrenarray of StackNodeoptionalUpstack dependents (a branch may have several). Empty in the downstack path.

Example

Synthesized example
{
"anchor_mr_id": 42,
"base_branch": "fix/payload-build-pin",
"downstack": [
{
"commits_behind": 3,
"is_anchor": false,
"merge_request_id": 42,
"position": 85,
"restack_required": false,
"source_branch": "refactor/brand-inline",
"status": "open",
"target_branch": "main",
"title": "Inline scalar newtypes but keep their brand"
},
{
"commits_behind": 7,
"is_anchor": false,
"merge_request_id": 42,
"position": 89,
"restack_required": false,
"source_branch": "feat/run-header-stream",
"status": "open",
"target_branch": "main",
"title": "Draw the region map from operation density"
}
],
"repository_id": "5b0e7c2a-9d14-4e8b-a6f1-2c3d4e5f6a70",
"size": 1,
"stack_health": "clean",
"upstack": [
{
"commits_behind": 3,
"is_anchor": false,
"merge_request_id": 42,
"position": 3,
"restack_required": false,
"source_branch": "refactor/brand-inline",
"status": "open",
"target_branch": "main",
"title": "Inline scalar newtypes but keep their brand"
}
]
}

Graph

Used inside

No schema contains this one.

Contains

Used by

Sent by 0 operations

No operation takes it as a request body.