gitlab_mr_list
List a project's merge requests on GitLab, defaulting to opened ones and supporting filters like state, labels, author, assignee, branches, search, and pagination.
Instructions
List a project's merge requests. Defaults to state=opened because the raw API would return every state at once. This version has no reviewers or draft filter - read work_in_progress on each item instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | 1-based page number; see pagination.nextPage in the result | |
| sort | No | ||
| scope | No | created_by_me / assigned_to_me / all; combined with author_id or assignee_id | |
| state | No | 'all' for every state | opened |
| labels | No | all listed labels must match | |
| search | No | matches title and description | |
| perPage | No | items per page, max 100 (GitLab default is 20) | |
| project | Yes | project id ('42') or full path ('group/subgroup/app'); a path is URL-encoded for you | |
| order_by | No | ||
| author_id | No | filter: author numeric user id (find it with gitlab_users_search); 0 unassigns | |
| milestone | No | milestone title | |
| assignee_id | No | filter: assignee numeric user id (find it with gitlab_users_search); 0 unassigns | |
| source_branch | No | branch name, e.g. feature/login | |
| target_branch | No | branch name, e.g. feature/login |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| pagination | Yes |