list_merge_requests
List merge requests from GitLab, optionally filtered by project, assignee, author, reviewer, labels, state, or search terms.
Instructions
List merge requests (without project_id: user's MRs; with project_id: project MRs)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Project ID or URL-encoded path (optional - if not provided, lists all merge requests the user has access to) | |
| assignee_id | No | Return MRs assigned to the given user ID (integer), 'none', or 'any'. Mutually exclusive with assignee_username. | |
| assignee_username | No | Returns merge requests assigned to the given username. Mutually exclusive with assignee_id. | |
| author_id | No | Returns merge requests created by the given user ID (integer). Mutually exclusive with author_username. | |
| author_username | No | Returns merge requests created by the given username. Mutually exclusive with author_id. | |
| reviewer_id | No | Returns merge requests which have the user as a reviewer. Must be an integer, 'none', or 'any'. Mutually exclusive with reviewer_username. | |
| reviewer_username | No | Returns merge requests which have the user as a reviewer by username. Mutually exclusive with reviewer_id. | |
| approved_by_usernames | No | Returns merge requests approved by the given usernames (array). | |
| created_after | No | Return merge requests created after the given time | |
| created_before | No | Return merge requests created before the given time | |
| updated_after | No | Return merge requests updated after the given time | |
| updated_before | No | Return merge requests updated before the given time | |
| labels | No | Array of label names | |
| milestone | No | Milestone title | |
| scope | No | Return merge requests from a specific scope | |
| search | No | Search for specific terms | |
| state | No | Return merge requests with a specific state | |
| order_by | No | Return merge requests ordered by the given field | |
| sort | No | Return merge requests sorted in ascending or descending order | |
| target_branch | No | Return merge requests targeting a specific branch | |
| source_branch | No | Return merge requests from a specific source branch | |
| wip | No | Filter merge requests against their wip status | |
| with_labels_details | No | Return more details for each label | |
| page | No | Page number for pagination (default: 1) | |
| per_page | No | Number of items per page (max: 100, default: 20) |