MergeCheckItem
Shape
- checkstring
- statusMergeCheckStatuspassedfailed
- blockingbooleanoptionalWhether this check failing stops the merge.
falsefor an advisory check —pipeline_staleandrestack_required— which reports something worth knowing and never blocks;mergeableis every blocking check passing. - caller_levelAccessLevelguestreporterdevelopermaintainerowneror nulloptional
- evaluated_target_shastring or nulloptionalThe target tip a
pipeline_stalerun was evaluated against — the evidence the check is reporting on, so "stale" is inspectable rather than merely asserted. - messagestring or nulloptional
- missing_approvalsarray of string or nulloptional
- pipeline_run_idPipelineRunId (string · uuid) or nulloptionalThe run a client should be sent to first, when the check read one: for
pipeline_resultthe first pipeline's run not to have passed, else the first; forpipeline_stale, the first stale run. - pipeline_stateMrPipelineStatependingrunningfailedpassedemptyor nulloptionalFor
pipeline_result: the verdict overpipelines, the same valueGET …/merge-requests/{mr_id}/pipelinesreports asstate. A failed item with no pipelines is otherwise three different answers — not decided yet, nothing applies, or the evaluation was refused — and only this andpipelines_evaluatedtell them apart without readingmessage. pipelinesarray of MrPipelineEntry or nulloptionalFor
pipeline_result: every pipeline that applies to the merge request's head and where it stands. Forpipeline_stale: each one whose run was tested against a target that has since moved.- The MrPipelineEntry schema
- pipeline_idPipelineId (string · uuid)The pipeline.
- pipeline_namestringThe pipeline's name.
- stalebooleanThe target branch has moved since the run was tested against it, so its result no longer describes what will land. Never blocks a merge on its own.
- stateMrPipelineStatependingrunningfailedpassedemptyWhere this pipeline stands at the head.
- buildMrBuildTargetmerge_resultsourceor nulloptionalWhich commit a merge-request run built: the merge result, or the source branch's tip.
- commit_shastring or nulloptionalThe commit the run built — the merge result or the source tip, per
build— which is the commitapprove_pipeline_runnames. Absent when no run has started. - evaluated_target_shastring or nulloptionalThe target branch's tip the run was tested against, for a merge-request run.
- kindTriggerKindpushmerge_requesttagschedulemanualor nulloptionalWhat started the run:
merge_requestfor a run started for this merge request,pushormanualfor a run of the head commit on its own. - pipeline_run_idPipelineRunId (string · uuid) or nulloptionalThe run that decides it: the pipeline's latest run that tested the head, preferring one started for this merge request. Absent when none has started.
- refusalTriggerOutcomematchedno_trigger_matchnot_registered_at_refdraftauthority_deniedauthority_unresolvableauthority_revokedquota_exhaustedloop_guardsupersededprovider_validation_failedconnection_resolution_faileddefinition_invalidalready_triggeredmerge_conflictor nulloptionalWhy the pipeline did not start, when it applied and could not — a quota, a definition that does not resolve, a merge conflict. Absent when it started or has yet to.
- statusPipelineStatusrunningsucceededsucceeded_with_warningsfailedtimed_outcancelledor nulloptionalThat run's status.
- trustTriggerTrusttrusteduntrustedor nulloptionalWhether the run's code was trusted with the repository's connections and secrets. An
untrustedrun's result was reached without them, and a person approvingcommit_shastarts a trusted run that replaces it here. Absent when no run has started.
- pipelines_evaluatedboolean or nulloptionalFor
pipeline_result: whether the trigger engine has decided which pipelines apply to the head.falseis the few seconds after a push, when the check waits rather than judges. - receivedinteger · int32 or nulloptional0–∞
- requiredinteger · int32 or nulloptional0–∞
- required_levelAccessLevelguestreporterdevelopermaintainerowneror nulloptional
rulesarray of ApprovalRuleStanding or nulloptionalFor the
approvalscheck: every approval rule that applies, with each recorded approval and whether it counts toward that rule.- The ApprovalRuleStanding schema
approvalsarray of ApprovalStandingEvery recorded approval, with whether it counts toward this rule.
- The ApprovalStanding schema
- bystringThe approver's username.
- countsboolean
- principal_idPrincipalId (string · uuid)
- reasonApprovalExclusionstalecannot_approvenot_an_approverservice_account_not_acceptedagent_not_acceptedsign_in_requiredauthorcommitterlast_pusheror nulloptionalWhy it does not count, when it does not.
- namestring
- receivedinteger · int320–∞Distinct approvals that count.
- requiredinteger · int320–∞
- rule_idApprovalRuleId (string · uuid)
- satisfiedboolean
- stack_mr_iidinteger · int64 or nulloptional0–∞The iid of the related stack member for the
downstack_unmerged/restack_requiredchecks. - unresolved_threadsinteger · int32 or nulloptional0–∞
- unverified_criteriaarray of string or nulloptionalThe acceptance criteria that are not green at the MR head, for the
issue_criteriacheck.
Example
Synthesized example{
"check": "check-a06a",
"status": "passed",
"blocking": false,
"caller_level": "guest",
"evaluated_target_sha": "7293561b73c57f98372e086e6e15035469a4d620",
"message": "Label every synthesized example",
"missing_approvals": [
"missing-approvals-8375",
"missing-approvals-f78e"
],
"pipeline_run_id": "9e2b7c41-3d5a-4f8e-b1c2-7a6d5e4f3c2b",
"pipeline_state": "passed",
"pipelines": [
{
"pipeline_id": "87da26fa-839a-4729-bbb6-3f6b5a6a91fa",
"pipeline_name": "payments-api",
"stale": false,
"state": "passed"
},
{
"pipeline_id": "e6837630-76cb-420e-9eee-89782e3204b3",
"pipeline_name": "payments-api",
"stale": false,
"state": "passed"
}
],
"pipelines_evaluated": false,
"received": 28,
"required": 81,
"required_level": "guest",
"rules": [
{
"approvals": [],
"name": "payments-api",
"received": 7,
"required": 68,
"rule_id": "459d7390-d596-406b-820c-1b6083bd5250",
"satisfied": false
}
],
"stack_mr_iid": 21,
"unresolved_threads": 39,
"unverified_criteria": [
"unverified-criteria-14a4"
]
}
Graph
Used inside
Used by
Sent by 0 operations
No operation takes it as a request body.
Returned by 1 operation