You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[11.14] Group milestones API: able to call GitLab API with addtional parameters updated_before and updated_after (#786)
* accept the parameters updated_before and updated_after (Introduced in GitLab 15.10)
* add missing phpunit tests
Groups Milestones (Gitlab\Tests\Api\GroupsMilestones)
✔ Should get all milestones with parameter one iids value
✔ Should get all milestones with parameter two iids values
✔ Should get all milestones with parameter state with active
✔ Should get all milestones with parameter state with closed
✔ Should get all milestones with parameter search
✔ Should get all milestones with parameter updated before
✔ Should get all milestones with parameter updated after
* fix code style
* remove unused variable and rename meaningful variable
* Change the dataProvider function to static (deprecated in PHPUnit 10)
* use DateTimeInterface instead of string for $updated_after and $updated_before
update unit tests
* Update GroupsMilestones.php
* Update GroupsMilestonesTest.php
---------
Co-authored-by: Graham Campbell <GrahamCampbell@users.noreply.github.com>
Copy file name to clipboardExpand all lines: src/Api/GroupsMilestones.php
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@
14
14
15
15
namespaceGitlab\Api;
16
16
17
+
useSymfony\Component\OptionsResolver\Options;
18
+
17
19
class GroupsMilestones extends AbstractApi
18
20
{
19
21
/**
@@ -32,14 +34,21 @@ class GroupsMilestones extends AbstractApi
32
34
*
33
35
* @var int[] $iids return only the milestones having the given iids
34
36
* @var string $state return only active or closed milestones
35
-
* @var string $search Return only milestones with a title or description matching the provided string.
37
+
* @var string $search Return only milestones with a title or description matching the provided string
38
+
* @var \DateTimeInterface $updated_after Return only milestones updated on or after the given datetime. Expected in ISO 8601 format (2019-03-15T08:00:00Z)
39
+
* @var \DateTimeInterface $updated_before Return only milestones updated on or before the given datetime. Expected in ISO 8601 format (2019-03-15T08:00:00Z)
0 commit comments