File tree 3 files changed +48
-1
lines changed
main/java/org/gitlab4j/api/models
test/resources/org/gitlab4j/api 3 files changed +48
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ public class MergeRequest {
54
54
private String mergeError ;
55
55
private Milestone milestone ;
56
56
private Pipeline pipeline ;
57
+ private Pipeline headPipeline ;
57
58
private Long projectId ;
58
59
private String sha ;
59
60
private Boolean shouldRemoveSourceBranch ;
@@ -374,6 +375,14 @@ public void setPipeline(Pipeline pipeline) {
374
375
this .pipeline = pipeline ;
375
376
}
376
377
378
+ public Pipeline getHeadPipeline () {
379
+ return headPipeline ;
380
+ }
381
+
382
+ public void setHeadPipeline (Pipeline headPipeline ) {
383
+ this .headPipeline = headPipeline ;
384
+ }
385
+
377
386
public Long getProjectId () {
378
387
return projectId ;
379
388
}
Original file line number Diff line number Diff line change 8
8
public class Pipeline {
9
9
10
10
private Long id ;
11
+ private Long projectId ;
11
12
private PipelineStatus status ;
12
13
private String ref ;
13
14
private String sha ;
@@ -34,6 +35,14 @@ public void setId(Long id) {
34
35
this .id = id ;
35
36
}
36
37
38
+ public Long getProjectId () {
39
+ return projectId ;
40
+ }
41
+
42
+ public void setProjectId (Long projectId ) {
43
+ this .projectId = projectId ;
44
+ }
45
+
37
46
public PipelineStatus getStatus () {
38
47
return status ;
39
48
}
Original file line number Diff line number Diff line change 74
74
"blocking_discussions_resolved" : true ,
75
75
"diverged_commits_count" : 2 ,
76
76
"latest_build_started_at" : " 2018-09-07T07:27:38.472Z" ,
77
- "latest_build_finished_at" : " 2018-09-07T08:07:06.012Z"
77
+ "latest_build_finished_at" : " 2018-09-07T08:07:06.012Z" ,
78
+ "head_pipeline" : {
79
+ "id" : 1 ,
80
+ "project_id" : 3 ,
81
+ "sha" : " 2be7ddb704c7b6b83732fdd5b9f09d5a397b5f8f" ,
82
+ "ref" : " test1" ,
83
+ "status" : " pending" ,
84
+ "created_at" : " 2018-09-07T07:27:38.472Z" ,
85
+ "updated_at" : " 2018-09-07T07:27:38.472Z" ,
86
+ "web_url" : " https://www.google.com/" ,
87
+ "before_sha" : " 0000000000000000000000000000000000000000" ,
88
+ "tag" : false ,
89
+ "user" : {
90
+ "id" :1 ,
91
+ "username" : " admin" ,
92
+ "state" : " active" ,
93
+ "email" :" admin@local.host" ,
94
+ "name" :" Administrator"
95
+ },
96
+ "detailed_status" : {
97
+ "icon" : " status_pending" ,
98
+ "text" : " pending" ,
99
+ "label" : " pending" ,
100
+ "group" : " pending" ,
101
+ "tooltip" : " pending" ,
102
+ "has_details" : true ,
103
+ "details_path" : " /my-group/my-project/-/pipelines/1" ,
104
+ "favicon" : " https://www.google.com/"
105
+ }
106
+ }
78
107
}
You can’t perform that action at this time.
0 commit comments