API: Add unscoped `/merge_requests` endpoint
Similar to the
/issues endpoint, provide a
/merge_requests endpoint that is not scoped to a project.
It would makes sense to do this, because the dashboard also allows accessing unscoped merge requests.
/merge_requestsendpoint that returns all merge requests created by the authenticated user.
- Possible filters would be (similar to the Dashboard):
- Ensure the docs are clear about "List merge requests" and "List project merge requests".
Links / references
List merge requests
Get all merge requests created by the authenticated user.
GET /merge_requests GET /merge_requests?state=opened GET /merge_requests?state=closed GET /merge_requests?labels=foo GET /merge_requests?labels=foo,bar GET /merge_requests?labels=foo,bar&state=opened GET /merge_requests?milestone=1.0.0 GET /merge_requests?milestone=1.0.0&state=opened GET /merge_requests?iids=42&iids=43
Attribute Type Required Description
string no Return all merge requests or just those that are
string no Comma-separated list of label names, merge requests must have all labels to be returned
string no Comma-separated list of milestone titles
Array[integer] no Return only the merge requests having the given
integer no Return only merge requests assigned to the user with this
integer no Return only merge requests authored by the user with this
string no Return requests ordered by
updated_atfields. Default is
string no Return requests sorted in
descorder. Default is
curl --header "PRIVATE-TOKEN: 9koXpg98eAheJpvBs5tK" https://gitlab.example.com/api/v4/merge_requests