List all project merge requests
Lists all project merge requests.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Query Parameters
Section titled “ Query Parameters ”Returns merge requests created by the given user id. Mutually exclusive with author_username. Combine with scope=all or scope=assigned_to_me.
Returns merge requests created by the given username. Mutually exclusive with author_id.
Returns merge requests created by the given username. Mutually exclusive with author_id.
Returns merge requests which have the user as a reviewer with the given username. None returns merge requests with no reviewers. Any returns merge requests with any reviewer. Mutually exclusive with reviewer_id. Introduced in GitLab 13.8.
Returns merge requests matching a comma-separated list of labels. None lists all merge requests with no labels. Any lists all merge requests with at least one label. Predefined names are case-insensitive.
Returns merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone.
Returns merge requests reacted by the authenticated user by the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction.
Returns all merge requests or just those that are opened, closed, locked, or merged.
Returns merge requests ordered by created_at, label_priority, milestone_due, popularity, priority, title, updated_at or merged_at fields. Introduced in GitLab 14.8.
Returns merge requests sorted in asc or desc order.
If true, response returns more details for each label in labels field: :name,:color, :description, :description_html, :text_color
If true, this projection requests (but does not guarantee) that the merge_status field be recalculated asynchronously. Introduced in GitLab 13.0.
Returns merge requests created on or after the given time. Expected in ISO 8601 format.
Example
2019-03-15T08:00:00ZReturns merge requests created on or before the given time. Expected in ISO 8601 format.
Example
2019-03-15T08:00:00ZReturns merge requests updated on or after the given time. Expected in ISO 8601 format.
Example
2019-03-15T08:00:00ZReturns merge requests updated on or before the given time. Expected in ISO 8601 format.
Example
2019-03-15T08:00:00ZIf simple, returns the iid, URL, title, description, and basic state of merge request
Returns merge requests for the given scope: created_by_me, assigned_to_me, reviews_for_me or all
Returns merge requests with the given source branch
Returns merge requests with the given source project id
Returns merge requests with the given target branch
Search merge requests against their title and description.
Modify the scope of the search attribute. title, description, or a string joining them with comma.
Example
title,descriptionDeprecated. Use draft instead. Filter merge requests against their wip status. yes to return only draft merge requests, no to return non-draft merge requests.
Filter merge requests against their draft status. true to return only draft merge requests, false to return non-draft merge requests.
Returns merge requests that do not match the parameters supplied
object
<Negated> Returns merge requests created by the given user id. Mutually exclusive with author_username. Combine with scope=all or scope=assigned_to_me.
<Negated> Returns merge requests created by the given username. Mutually exclusive with author_id.
<Negated> Returns merge requests created by the given username. Mutually exclusive with author_id.
<Negated> Returns merge requests which have the user as a reviewer with the given username. None returns merge requests with no reviewers. Any returns merge requests with any reviewer. Mutually exclusive with reviewer_id. Introduced in GitLab 13.8.
<Negated> Returns merge requests matching a comma-separated list of labels. None lists all merge requests with no labels. Any lists all merge requests with at least one label. Predefined names are case-insensitive.
<Negated> Returns merge requests for a specific milestone. None returns merge requests with no milestone. Any returns merge requests that have an assigned milestone.
<Negated> Returns merge requests reacted by the authenticated user by the given emoji. None returns issues not given a reaction. Any returns issues given at least one reaction.
<Negated> Returns merge requests which have the user as a reviewer with the given user id. None returns merge requests with no reviewers. Any returns merge requests with any reviewer. Mutually exclusive with reviewer_username.
Returns merge requests deployed before the given date/time. Expected in ISO 8601 format.
Example
2019-03-15T08:00:00ZReturns merge requests deployed after the given date/time. Expected in ISO 8601 format
Example
2019-03-15T08:00:00ZReturns merge requests deployed to the given environment
Example
2019-03-15T08:00:00ZReturns merge requests which have been merged by the user with the given user id. Mutually exclusive with merge_user_username.
Returns merge requests which have been merged by the user with the given username. Mutually exclusive with merge_user_id.
Current page number
Example
1Number of items per page
Example
20Returns the request having the given iid.
Responses
Section titled “ Responses ”OK
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Example
{ "id": 84, "iid": 14, "project_id": 4, "title": "Impedit et ut et dolores vero provident ullam est", "description": "Repellendus impedit et vel velit dignissimos.", "state": "closed", "created_at": "2022-08-17T12:46:35.053Z", "updated_at": "2022-11-14T17:22:01.470Z", "merged_by": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" }, "merge_user": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" }, "merged_at": "2022-01-31T15:10:45.080Z", "closed_by": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" }, "closed_at": "2022-01-31T15:10:45.080Z", "author": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" }, "assignees": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" }, "assignee": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" }, "reviewers": { "id": 1, "username": "admin", "public_email": "john@example.com", "name": "Administrator", "state": "active", "avatar_url": "https://gravatar.com/avatar/1", "avatar_path": "/user/avatar/28/The-Big-Lebowski-400-400.png", "custom_attributes": [ { "key": "foo", "value": "bar" } ], "web_url": "https://gitlab.example.com/root" }, "imported_from": "bitbucket", "merge_status": "unchecked", "detailed_merge_status": "mergeable", "merge_after": "2022-01-31T15:10:45.080Z", "sha": "1234abcd", "merge_commit_sha": "1234abcd", "squash_commit_sha": "1234abcd", "prepared_at": "2022-01-31T15:10:45.080Z", "reference": "!1", "references": { "short": "&6", "relative": "&6", "full": "test&6" }, "web_url": "https://gitlab.example.com/my-group/my-project/-/merge_requests/1", "time_stats": { "time_estimate": 12600, "total_time_spent": 3600, "human_time_estimate": "3h 30m", "human_total_time_spent": "1h" }, "task_completion_status": { "count": 5, "completed_count": 3 }, "approvals_before_merge": 2}Bad Request
Unauthorized
Not found
Unprocessable entity