Skip to content

Commit 92414d4

Browse files
authored
Allow use of search parameter for merge requests
It's possible to use search parameter for merge-requests. The only change is to add to $resolver.
1 parent 70aeb9f commit 92414d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Gitlab/Api/MergeRequests.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ public function all($project_id, array $parameters = [])
6767
->setAllowedTypes('created_before', \DateTimeInterface::class)
6868
->setNormalizer('created_before', $datetimeNormalizer)
6969
;
70-
70+
$resolver->setDefined('search');
71+
7172
return $this->get($this->getProjectPath($project_id, 'merge_requests'), $resolver->resolve($parameters));
7273
}
7374

0 commit comments

Comments
 (0)