Add draft boolean parameter to merge requests list API

What does this MR do and why?

Adds a draft boolean parameter to the merge requests list endpoints (GET /merge_requests, GET /projects/:id/merge_requests, GET /groups/:id/merge_requests).

The existing wip parameter predates the rename from "WIP" to "Draft" and uses yes/no string values, which is inconsistent with other boolean API parameters. The new draft parameter accepts true/false and is mutually exclusive with wip. The wip parameter is preserved for backwards compatibility.

The underlying MergeRequestsFinder already supports a :draft key — this change simply exposes it through the API layer.

Closes: #598736

MR acceptance checklist

  • I have evaluated the MR acceptance checklist for this MR.
Edited by Kai Armstrong

Merge request reports

Loading