Merge request API ignoring source/target branch
Summary
Specifying a source_branch
or target_branch
for the merge requests api (https://docs.gitlab.com/ee/api/merge_requests.html#list-project-merge-requests) does not seem to have an impact, all requests are still returned.
Steps to reproduce
Create a merge request
Run an API query with a source_branch
or target_branch
parameter
Example Project
https://gitlab.com/api/v4/projects/lunim%2Ftest-project/merge_requests?scope=all&source_branch=br-2
What is the current bug behavior?
Displays all merge requests
What is the expected correct behavior?
Shows only merge requests for the source or target branch
Relevant logs and/or screenshots
https://gitlab.com/api/v4/projects/lunim%2Ftest-project/merge_requests?scope=all&source_branch=br-2
[
{
"id": 8196713,
"iid": 1,
"project_id": 5657008,
"title": "Update README.md",
"description": "",
"state": "opened",
"created_at": "2018-03-05T22:12:33.161Z",
"updated_at": "2018-03-05T22:12:33.161Z",
"target_branch": "master",
"source_branch": "br-1",
...
"web_url": "https://gitlab.com/lunim/test-project/merge_requests/1",
}
]