@@ -156,6 +156,22 @@ enum DetailedMergeStatus {
156
156
REQUESTED_CHANGES
157
157
}
158
158
159
+ enum PipelineStatusEnum {
160
+ CANCELED
161
+ CANCELING
162
+ CREATED
163
+ FAILED
164
+ MANUAL
165
+ PENDING
166
+ PREPARING
167
+ RUNNING
168
+ SCHEDULED
169
+ SKIPPED
170
+ SUCCESS
171
+ WAITING_FOR_CALLBACK
172
+ WAITING_FOR_RESOURCE
173
+ }
174
+
159
175
input ListMergeRequestsQueryInput {
160
176
project_id : ID !
161
177
state : MergeRequestState ! = "opened"
@@ -337,6 +353,8 @@ type ContextMergeRequest {
337
353
DiffStats : [ContextDiffStat ! ]
338
354
"Labels available on this merge request"
339
355
Labels : [ContextLabel ! ] @generated
356
+ "Pipeline running on the branch HEAD of the merge request"
357
+ HeadPipeline : ContextPipeline
340
358
341
359
#
342
360
# scm-engine customs
@@ -466,3 +484,43 @@ type ContextDiffStat {
466
484
"File path, relative to repository root"
467
485
Path : String !
468
486
}
487
+
488
+ # https://docs.gitlab.com/ee/api/graphql/reference/#pipeline
489
+ type ContextPipeline {
490
+ "Indicates if the pipeline is active"
491
+ Active : Boolean !
492
+ "Specifies if a pipeline can be canceled"
493
+ Cancelable : Boolean !
494
+ "Indicates if a pipeline is complete"
495
+ Complete : Boolean !
496
+ "Duration of the pipeline in seconds"
497
+ Duration : Int
498
+ "The reason why the pipeline failed"
499
+ FailureReason : String
500
+ "Timestamp of the pipeline's completion"
501
+ FinishedAt : Time
502
+ "ID of the pipeline"
503
+ ID : String !
504
+ "Internal ID of the pipeline"
505
+ IID : String !
506
+ "If the pipeline is the latest one or not"
507
+ Latest : Boolean !
508
+ "Name of the pipeline"
509
+ Name : String
510
+ "Relative path to the pipeline's page"
511
+ Path : String
512
+ "Specifies if a pipeline can be retried"
513
+ Retryable : Boolean !
514
+ "Timestamp when the pipeline was started"
515
+ StartedAt : Time
516
+ "Status of the pipeline"
517
+ Status : PipelineStatusEnum !
518
+ "If the pipeline is stuck"
519
+ Stuck : Boolean !
520
+ "The total number of jobs in the pipeline"
521
+ TotalJobs : Int !
522
+ "Timestamp of the pipeline's last activity"
523
+ UpdatedAt : Time !
524
+ "Indicates if a pipeline has warnings"
525
+ Warnings : Boolean !
526
+ }
0 commit comments