Add order by merged_at on merge request
What does this MR do and why?
Add merged_at_asc
and merged_at_desc
in sort
parameter on Merge Request resource.
Connected to #241469 (closed)
Created_at query (Already exists):
https://console.postgres.ai/gitlab/gitlab-production-main/sessions/28706/commands/89446
Merged_at query (New Query):
https://console.postgres.ai/gitlab/gitlab-production-main/sessions/28706/commands/89445
How to set up and validate locally
- Descending Order Request
Click to expand
curl --request GET \
--url 'http://gdk.test:3000/api/v4/merge_requests?order_by=merged_at&state=&sort='
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json'
Response
Click to expand
[
{
"id": 109,
"iid": 4,
"project_id": 13,
"title": "Sed magnam at non consequuntur assumenda eligendi.",
"description": "Placeat qui cumque aut non dolores.",
"state": "merged",
"created_at": "2024-03-10T09:24:12.242Z",
"updated_at": "2024-03-10T09:24:12.242Z",
"merged_by": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merge_user": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merged_at": "2024-02-09T09:24:12.346Z",
"closed_by": null,
"closed_at": null,
"target_branch": "main",
"source_branch": "CSP-Phonsforge-81",
"user_notes_count": 0,
"upvotes": 0,
"downvotes": 0,
"author": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"assignees": [],
"assignee": null,
"reviewers": [],
"source_project_id": 13,
"target_project_id": 13,
"labels": [],
"draft": false,
"work_in_progress": false,
"milestone": null,
"merge_when_pipeline_succeeds": false,
"merge_status": "can_be_merged",
"detailed_merge_status": "not_open",
"sha": null,
"merge_commit_sha": null,
"squash_commit_sha": null,
"discussion_locked": null,
"should_remove_source_branch": null,
"force_remove_source_branch": null,
"prepared_at": null,
"reference": "!4",
"references": {
"short": "!4",
"relative": "!4",
"full": "root/gitlab-shell!4"
},
"web_url": "http://gdk.test:3000/root/gitlab-shell/-/merge_requests/4",
"time_stats": {
"time_estimate": 0,
"total_time_spent": 0,
"human_time_estimate": null,
"human_total_time_spent": null
},
"squash": false,
"squash_on_merge": false,
"task_completion_status": {
"count": 0,
"completed_count": 0
},
"has_conflicts": false,
"blocking_discussions_resolved": true,
"approvals_before_merge": null
},
{
"id": 106,
"iid": 1,
"project_id": 13,
"title": "Ab velit accusantium consectetur occaecati aspernatur voluptatem et reiciendis.",
"description": "Voluptatem cupiditate nihil veritatis omnis.",
"state": "merged",
"created_at": "2024-03-10T09:24:11.819Z",
"updated_at": "2024-03-10T09:24:11.819Z",
"merged_by": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merge_user": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merged_at": "2024-02-14T09:24:12.015Z",
"closed_by": null,
"closed_at": null,
"target_branch": "main",
"source_branch": "Sonix-Triophfunc-327",
"user_notes_count": 0,
"upvotes": 0,
"downvotes": 0,
"author": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"assignees": [],
"assignee": null,
"reviewers": [],
"source_project_id": 13,
"target_project_id": 13,
"labels": [],
"draft": false,
"work_in_progress": false,
"milestone": null,
"merge_when_pipeline_succeeds": false,
"merge_status": "can_be_merged",
"detailed_merge_status": "not_open",
"sha": null,
"merge_commit_sha": null,
"squash_commit_sha": null,
"discussion_locked": null,
"should_remove_source_branch": null,
"force_remove_source_branch": null,
"prepared_at": null,
"reference": "!1",
"references": {
"short": "!1",
"relative": "!1",
"full": "root/gitlab-shell!1"
},
"web_url": "http://gdk.test:3000/root/gitlab-shell/-/merge_requests/1",
"time_stats": {
"time_estimate": 0,
"total_time_spent": 0,
"human_time_estimate": null,
"human_total_time_spent": null
},
"squash": false,
"squash_on_merge": false,
"task_completion_status": {
"count": 0,
"completed_count": 0
},
"has_conflicts": false,
"blocking_discussions_resolved": true,
"approvals_before_merge": null
},
{
"id": 108,
"iid": 3,
"project_id": 13,
"title": "Ducimus repudiandae fugit voluptas assumenda numquam debitis amet sequi.",
"description": "Non consequatur laborum molestias neque in.",
"state": "merged",
"created_at": "2024-03-10T09:24:12.133Z",
"updated_at": "2024-03-10T09:24:12.133Z",
"merged_by": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merge_user": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merged_at": "2024-02-16T09:24:12.235Z",
"closed_by": null,
"closed_at": null,
"target_branch": "main",
"source_branch": "Brynswood-Brionsfunc-769",
"user_notes_count": 0,
"upvotes": 0,
"downvotes": 0,
"author": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"assignees": [],
"assignee": null,
"reviewers": [],
"source_project_id": 13,
"target_project_id": 13,
"labels": [],
"draft": false,
"work_in_progress": false,
"milestone": null,
"merge_when_pipeline_succeeds": false,
"merge_status": "can_be_merged",
"detailed_merge_status": "not_open",
"sha": null,
"merge_commit_sha": null,
"squash_commit_sha": null,
"discussion_locked": null,
"should_remove_source_branch": null,
"force_remove_source_branch": null,
"prepared_at": null,
"reference": "!3",
"references": {
"short": "!3",
"relative": "!3",
"full": "root/gitlab-shell!3"
},
"web_url": "http://gdk.test:3000/root/gitlab-shell/-/merge_requests/3",
"time_stats": {
"time_estimate": 0,
"total_time_spent": 0,
"human_time_estimate": null,
"human_total_time_spent": null
},
"squash": false,
"squash_on_merge": false,
"task_completion_status": {
"count": 0,
"completed_count": 0
},
"has_conflicts": false,
"blocking_discussions_resolved": true,
"approvals_before_merge": null
},
{
"id": 107,
"iid": 2,
"project_id": 13,
"title": "Laborum nisi minus saepe deleniti repudiandae accusantium harum vel.",
"description": "Voluptatem aut eum voluptatem cupiditate blanditiis non ab magni.",
"state": "merged",
"created_at": "2024-03-10T09:24:12.023Z",
"updated_at": "2024-03-10T09:24:12.023Z",
"merged_by": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merge_user": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merged_at": "2024-02-29T09:24:12.125Z",
"closed_by": null,
"closed_at": null,
"target_branch": "main",
"source_branch": "Phost-Troffe-342",
"user_notes_count": 0,
"upvotes": 0,
"downvotes": 0,
"author": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"assignees": [],
"assignee": null,
"reviewers": [],
"source_project_id": 13,
"target_project_id": 13,
"labels": [],
"draft": false,
"work_in_progress": false,
"milestone": null,
"merge_when_pipeline_succeeds": false,
"merge_status": "can_be_merged",
"detailed_merge_status": "not_open",
"sha": null,
"merge_commit_sha": null,
"squash_commit_sha": null,
"discussion_locked": null,
"should_remove_source_branch": null,
"force_remove_source_branch": null,
"prepared_at": null,
"reference": "!2",
"references": {
"short": "!2",
"relative": "!2",
"full": "root/gitlab-shell!2"
},
"web_url": "http://gdk.test:3000/root/gitlab-shell/-/merge_requests/2",
"time_stats": {
"time_estimate": 0,
"total_time_spent": 0,
"human_time_estimate": null,
"human_total_time_spent": null
},
"squash": false,
"squash_on_merge": false,
"task_completion_status": {
"count": 0,
"completed_count": 0
},
"has_conflicts": false,
"blocking_discussions_resolved": true,
"approvals_before_merge": null
},
{
"id": 36,
"iid": 8,
"project_id": 2,
"title": "Can be automatically merged",
"description": null,
"state": "merged",
"created_at": "2024-03-10T09:19:03.022Z",
"updated_at": "2024-03-10T12:24:42.077Z",
"merged_by": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merge_user": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merged_at": "2024-03-10T12:24:36.922Z",
"closed_by": null,
"closed_at": null,
"target_branch": "master",
"source_branch": "feature",
"user_notes_count": 11,
"upvotes": 0,
"downvotes": 0,
"author": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"assignees": [],
"assignee": null,
"reviewers": [],
"source_project_id": 2,
"target_project_id": 2,
"labels": [],
"draft": false,
"work_in_progress": false,
"milestone": null,
"merge_when_pipeline_succeeds": false,
"merge_status": "can_be_merged",
"detailed_merge_status": "not_open",
"sha": "0b4bc9a49b562e85de7cc9e834518ea6828729b9",
"merge_commit_sha": "7a0966ba067e3edece18a210f43951a33d9210b9",
"squash_commit_sha": null,
"discussion_locked": null,
"should_remove_source_branch": true,
"force_remove_source_branch": null,
"prepared_at": "2024-03-10T09:25:25.107Z",
"reference": "!8",
"references": {
"short": "!8",
"relative": "!8",
"full": "gitlab-org/gitlab-test!8"
},
"web_url": "http://gdk.test:3000/gitlab-org/gitlab-test/-/merge_requests/8",
"time_stats": {
"time_estimate": 0,
"total_time_spent": 0,
"human_time_estimate": null,
"human_total_time_spent": null
},
"squash": false,
"squash_on_merge": false,
"task_completion_status": {
"count": 0,
"completed_count": 0
},
"has_conflicts": false,
"blocking_discussions_resolved": true,
"approvals_before_merge": null
}
]
- Ascending Order Request
Click to expand
curl --request GET \
--url 'http://gdk.test:3000/api/v4/merge_requests?order_by=merged_at&state=merged&sort=asc' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json'
Response
Click to expand
[
{
"id": 36,
"iid": 8,
"project_id": 2,
"title": "Can be automatically merged",
"description": null,
"state": "merged",
"created_at": "2024-03-10T09:19:03.022Z",
"updated_at": "2024-03-10T12:24:42.077Z",
"merged_by": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merge_user": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merged_at": "2024-03-10T12:24:36.922Z",
"closed_by": null,
"closed_at": null,
"target_branch": "master",
"source_branch": "feature",
"user_notes_count": 11,
"upvotes": 0,
"downvotes": 0,
"author": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"assignees": [],
"assignee": null,
"reviewers": [],
"source_project_id": 2,
"target_project_id": 2,
"labels": [],
"draft": false,
"work_in_progress": false,
"milestone": null,
"merge_when_pipeline_succeeds": false,
"merge_status": "can_be_merged",
"detailed_merge_status": "not_open",
"sha": "0b4bc9a49b562e85de7cc9e834518ea6828729b9",
"merge_commit_sha": "7a0966ba067e3edece18a210f43951a33d9210b9",
"squash_commit_sha": null,
"discussion_locked": null,
"should_remove_source_branch": true,
"force_remove_source_branch": null,
"prepared_at": "2024-03-10T09:25:25.107Z",
"reference": "!8",
"references": {
"short": "!8",
"relative": "!8",
"full": "gitlab-org/gitlab-test!8"
},
"web_url": "http://gdk.test:3000/gitlab-org/gitlab-test/-/merge_requests/8",
"time_stats": {
"time_estimate": 0,
"total_time_spent": 0,
"human_time_estimate": null,
"human_total_time_spent": null
},
"squash": false,
"squash_on_merge": false,
"task_completion_status": {
"count": 0,
"completed_count": 0
},
"has_conflicts": false,
"blocking_discussions_resolved": true,
"approvals_before_merge": null
},
{
"id": 107,
"iid": 2,
"project_id": 13,
"title": "Laborum nisi minus saepe deleniti repudiandae accusantium harum vel.",
"description": "Voluptatem aut eum voluptatem cupiditate blanditiis non ab magni.",
"state": "merged",
"created_at": "2024-03-10T09:24:12.023Z",
"updated_at": "2024-03-10T09:24:12.023Z",
"merged_by": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merge_user": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merged_at": "2024-02-29T09:24:12.125Z",
"closed_by": null,
"closed_at": null,
"target_branch": "main",
"source_branch": "Phost-Troffe-342",
"user_notes_count": 0,
"upvotes": 0,
"downvotes": 0,
"author": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"assignees": [],
"assignee": null,
"reviewers": [],
"source_project_id": 13,
"target_project_id": 13,
"labels": [],
"draft": false,
"work_in_progress": false,
"milestone": null,
"merge_when_pipeline_succeeds": false,
"merge_status": "can_be_merged",
"detailed_merge_status": "not_open",
"sha": null,
"merge_commit_sha": null,
"squash_commit_sha": null,
"discussion_locked": null,
"should_remove_source_branch": null,
"force_remove_source_branch": null,
"prepared_at": null,
"reference": "!2",
"references": {
"short": "!2",
"relative": "!2",
"full": "root/gitlab-shell!2"
},
"web_url": "http://gdk.test:3000/root/gitlab-shell/-/merge_requests/2",
"time_stats": {
"time_estimate": 0,
"total_time_spent": 0,
"human_time_estimate": null,
"human_total_time_spent": null
},
"squash": false,
"squash_on_merge": false,
"task_completion_status": {
"count": 0,
"completed_count": 0
},
"has_conflicts": false,
"blocking_discussions_resolved": true,
"approvals_before_merge": null
},
{
"id": 108,
"iid": 3,
"project_id": 13,
"title": "Ducimus repudiandae fugit voluptas assumenda numquam debitis amet sequi.",
"description": "Non consequatur laborum molestias neque in.",
"state": "merged",
"created_at": "2024-03-10T09:24:12.133Z",
"updated_at": "2024-03-10T09:24:12.133Z",
"merged_by": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merge_user": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merged_at": "2024-02-16T09:24:12.235Z",
"closed_by": null,
"closed_at": null,
"target_branch": "main",
"source_branch": "Brynswood-Brionsfunc-769",
"user_notes_count": 0,
"upvotes": 0,
"downvotes": 0,
"author": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"assignees": [],
"assignee": null,
"reviewers": [],
"source_project_id": 13,
"target_project_id": 13,
"labels": [],
"draft": false,
"work_in_progress": false,
"milestone": null,
"merge_when_pipeline_succeeds": false,
"merge_status": "can_be_merged",
"detailed_merge_status": "not_open",
"sha": null,
"merge_commit_sha": null,
"squash_commit_sha": null,
"discussion_locked": null,
"should_remove_source_branch": null,
"force_remove_source_branch": null,
"prepared_at": null,
"reference": "!3",
"references": {
"short": "!3",
"relative": "!3",
"full": "root/gitlab-shell!3"
},
"web_url": "http://gdk.test:3000/root/gitlab-shell/-/merge_requests/3",
"time_stats": {
"time_estimate": 0,
"total_time_spent": 0,
"human_time_estimate": null,
"human_total_time_spent": null
},
"squash": false,
"squash_on_merge": false,
"task_completion_status": {
"count": 0,
"completed_count": 0
},
"has_conflicts": false,
"blocking_discussions_resolved": true,
"approvals_before_merge": null
},
{
"id": 106,
"iid": 1,
"project_id": 13,
"title": "Ab velit accusantium consectetur occaecati aspernatur voluptatem et reiciendis.",
"description": "Voluptatem cupiditate nihil veritatis omnis.",
"state": "merged",
"created_at": "2024-03-10T09:24:11.819Z",
"updated_at": "2024-03-10T09:24:11.819Z",
"merged_by": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merge_user": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merged_at": "2024-02-14T09:24:12.015Z",
"closed_by": null,
"closed_at": null,
"target_branch": "main",
"source_branch": "Sonix-Triophfunc-327",
"user_notes_count": 0,
"upvotes": 0,
"downvotes": 0,
"author": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"assignees": [],
"assignee": null,
"reviewers": [],
"source_project_id": 13,
"target_project_id": 13,
"labels": [],
"draft": false,
"work_in_progress": false,
"milestone": null,
"merge_when_pipeline_succeeds": false,
"merge_status": "can_be_merged",
"detailed_merge_status": "not_open",
"sha": null,
"merge_commit_sha": null,
"squash_commit_sha": null,
"discussion_locked": null,
"should_remove_source_branch": null,
"force_remove_source_branch": null,
"prepared_at": null,
"reference": "!1",
"references": {
"short": "!1",
"relative": "!1",
"full": "root/gitlab-shell!1"
},
"web_url": "http://gdk.test:3000/root/gitlab-shell/-/merge_requests/1",
"time_stats": {
"time_estimate": 0,
"total_time_spent": 0,
"human_time_estimate": null,
"human_total_time_spent": null
},
"squash": false,
"squash_on_merge": false,
"task_completion_status": {
"count": 0,
"completed_count": 0
},
"has_conflicts": false,
"blocking_discussions_resolved": true,
"approvals_before_merge": null
},
{
"id": 109,
"iid": 4,
"project_id": 13,
"title": "Sed magnam at non consequuntur assumenda eligendi.",
"description": "Placeat qui cumque aut non dolores.",
"state": "merged",
"created_at": "2024-03-10T09:24:12.242Z",
"updated_at": "2024-03-10T09:24:12.242Z",
"merged_by": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merge_user": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"merged_at": "2024-02-09T09:24:12.346Z",
"closed_by": null,
"closed_at": null,
"target_branch": "main",
"source_branch": "CSP-Phonsforge-81",
"user_notes_count": 0,
"upvotes": 0,
"downvotes": 0,
"author": {
"id": 1,
"username": "root",
"name": "Administrator",
"state": "active",
"locked": false,
"avatar_url": "https://www.gravatar.com/avatar/258d8dc916db8cea2cafb6c3cd0cb0246efe061421dbd83ec3a350428cabda4f?s=80&d=identicon",
"web_url": "http://gdk.test:3000/root"
},
"assignees": [],
"assignee": null,
"reviewers": [],
"source_project_id": 13,
"target_project_id": 13,
"labels": [],
"draft": false,
"work_in_progress": false,
"milestone": null,
"merge_when_pipeline_succeeds": false,
"merge_status": "can_be_merged",
"detailed_merge_status": "not_open",
"sha": null,
"merge_commit_sha": null,
"squash_commit_sha": null,
"discussion_locked": null,
"should_remove_source_branch": null,
"force_remove_source_branch": null,
"prepared_at": null,
"reference": "!4",
"references": {
"short": "!4",
"relative": "!4",
"full": "root/gitlab-shell!4"
},
"web_url": "http://gdk.test:3000/root/gitlab-shell/-/merge_requests/4",
"time_stats": {
"time_estimate": 0,
"total_time_spent": 0,
"human_time_estimate": null,
"human_total_time_spent": null
},
"squash": false,
"squash_on_merge": false,
"task_completion_status": {
"count": 0,
"completed_count": 0
},
"has_conflicts": false,
"blocking_discussions_resolved": true,
"approvals_before_merge": null
}
]
Edited by Marc Shaw