Skip to content

Commit

Permalink
Merge pull request #289 from grine4ka/change-using-gitlab-head-pipeline
Browse files Browse the repository at this point in the history
Fix using `head_pipeline` instead of `pipeline` in GitLab
  • Loading branch information
Vacxe authored Oct 23, 2024
2 parents 197231e + f4dceda commit 1d57d8b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ data class GitLabMergeRequest(
@SerialName("merge_when_pipeline_succeeds")
val mergeOnPipelineSuccess: Boolean,
val milestone: GitLabMilestone? = null,
@SerialName("head_pipeline")
val pipeline: GitLabPipeline,
@SerialName("project_id")
val projectId: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@
"latest_build_started_at": "2021-04-30T14:35:00.103+02:00",
"latest_build_finished_at": "2019-04-11T00:33:22.492Z",
"first_deployed_to_production_at": "2019-04-11T00:30:22.492Z",
"pipeline": {
"pipeline": null,
"head_pipeline": {
"id": 50,
"sha": "621bc3348549e51c5bd6ea9f094913e9e4667c7b",
"ref": "ef28580bb2a00d985bffe4a4ce3fe09fdb12283f",
"status": "success",
"web_url": "https://gitlab.com/danger-systems/danger.systems/pipeline/621bc3348549e51c5bd6ea9f094913e9e4667c7b"
},
"head_pipeline": null,
"diff_refs": {
"base_sha": "ef28580bb2a00d985bffe4a4ce3fe09fdb12283f",
"head_sha": "621bc3348549e51c5bd6ea9f094913e9e4667c7b",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@
"latest_build_started_at": "2021-04-30T14:35:00.103+02:00",
"latest_build_finished_at": "2019-04-11T00:33:22.492Z",
"first_deployed_to_production_at": "2019-04-11T00:30:22.492Z",
"pipeline": {
"pipeline": null,
"head_pipeline": {
"id": 50,
"sha": "621bc3348549e51c5bd6ea9f094913e9e4667c7b",
"ref": "ef28580bb2a00d985bffe4a4ce3fe09fdb12283f",
"status": "canceled",
"web_url": "https://gitlab.com/danger-systems/danger.systems/pipeline/621bc3348549e51c5bd6ea9f094913e9e4667c7b"
},
"head_pipeline": null,
"diff_refs": {
"base_sha": "ef28580bb2a00d985bffe4a4ce3fe09fdb12283f",
"head_sha": "621bc3348549e51c5bd6ea9f094913e9e4667c7b",
Expand Down

0 comments on commit 1d57d8b

Please sign in to comment.