github.com/jenkins-x/jx/v2@v2.1.155/pkg/gits/test_data/gitlab/merge-request.json (about) 1 { 2 "id": 1, 3 "iid": 12, 4 "project_id": 5690870, 5 "title": "testmr12", 6 "description": "the 12th MR", 7 "state": "open", 8 "created_at": "2017-04-29T08:46:00Z", 9 "updated_at": "2017-04-29T08:46:00Z", 10 "target_branch": "master", 11 "source_branch": "test1", 12 "upvotes": 0, 13 "downvotes": 0, 14 "author": { 15 "id": 1, 16 "name": "Administrator", 17 "username": "testperson", 18 "state": "active", 19 "avatar_url": null, 20 "web_url" : "https://gitlab.example.com/admin" 21 }, 22 "assignee": { 23 "id": 1, 24 "name": "Administrator", 25 "username": "testperson", 26 "state": "active", 27 "avatar_url": null, 28 "web_url" : "https://gitlab.example.com/admin" 29 }, 30 "source_project_id": 2, 31 "target_project_id": 3, 32 "labels": [ 33 "Community contribution", 34 "Manage" 35 ], 36 "work_in_progress": false, 37 "milestone": { 38 "id": 5, 39 "iid": 1, 40 "project_id": 3, 41 "title": "v2.0", 42 "description": "Assumenda aut placeat expedita exercitationem labore sunt enim earum.", 43 "state": "closed", 44 "created_at": "2015-02-02T19:49:26.013Z", 45 "updated_at": "2015-02-02T19:49:26.013Z", 46 "due_date": "2018-09-22", 47 "start_date": "2018-08-08", 48 "web_url": "https://gitlab.example.com/my-group/my-project/milestones/1" 49 }, 50 "merge_when_pipeline_succeeds": true, 51 "merge_status": "can_be_merged", 52 "merge_error": null, 53 "sha": "8888888888888888888888888888888888888888", 54 "merge_commit_sha": null, 55 "user_notes_count": 1, 56 "discussion_locked": null, 57 "should_remove_source_branch": true, 58 "force_remove_source_branch": false, 59 "allow_collaboration": false, 60 "allow_maintainer_to_push": false, 61 "web_url": "http://gitlab.example.com/my-group/my-project/merge_requests/1", 62 "time_stats": { 63 "time_estimate": 0, 64 "total_time_spent": 0, 65 "human_time_estimate": null, 66 "human_total_time_spent": null 67 }, 68 "squash": false, 69 "subscribed": false, 70 "changes_count": "1", 71 "merged_by": { 72 "id": 87854, 73 "name": "Douwe Maan", 74 "username": "DouweM", 75 "state": "active", 76 "avatar_url": "https://gitlab.example.com/uploads/-/system/user/avatar/87854/avatar.png", 77 "web_url": "https://gitlab.com/DouweM" 78 }, 79 "merged_at": "2018-09-07T11:16:17.520Z", 80 "closed_by": null, 81 "closed_at": null, 82 "latest_build_started_at": "2018-09-07T07:27:38.472Z", 83 "latest_build_finished_at": "2018-09-07T08:07:06.012Z", 84 "first_deployed_to_production_at": null, 85 "pipeline": { 86 "id": 29626725, 87 "sha": "2be7ddb704c7b6b83732fdd5b9f09d5a397b5f8f", 88 "ref": "patch-28", 89 "status": "success", 90 "web_url": "https://gitlab.example.com/my-group/my-project/pipelines/29626725" 91 }, 92 "diff_refs": { 93 "base_sha": "c380d3acebd181f13629a25d2e2acca46ffe1e00", 94 "head_sha": "2be7ddb704c7b6b83732fdd5b9f09d5a397b5f8f", 95 "start_sha": "c380d3acebd181f13629a25d2e2acca46ffe1e00" 96 }, 97 "diverged_commits_count": 2, 98 "task_completion_status":{ 99 "count":0, 100 "completed_count":0 101 } 102 }