diff --git a/composer.json b/composer.json index 4c7036bf..c0cb5318 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "m4tthumphrey/php-gitlab-api", + "name": "jjvanrossum/php-gitlab-api", "description": "GitLab API v4 client for PHP", "keywords": ["gitlab", "api"], "license": "MIT", diff --git a/src/Api/GroupsEpics.php b/src/Api/GroupsEpics.php index ec87cad8..99f91d2b 100644 --- a/src/Api/GroupsEpics.php +++ b/src/Api/GroupsEpics.php @@ -55,6 +55,7 @@ public function all($group_id, array $parameters = []) ->setAllowedValues('state', [self::STATE_ALL, self::STATE_OPENED, self::STATE_CLOSED]) ; $resolver->setDefined('search'); + $resolver->setDefined('updated_after'); return $this->get('groups/'.self::encodePath($group_id).'/epics', $resolver->resolve($parameters)); } @@ -114,4 +115,26 @@ public function issues($group_id, int $epic_iid) { return $this->get('groups/'.self::encodePath($group_id).'/epics/'.self::encodePath($epic_iid).'/issues'); } + + /** + * @param int|string $group_id + * @param int $epic_iid + * + * @return mixed + */ + public function showDiscussions($group_id, int $epic_iid) + { + return $this->get('groups/'.self::encodePath($group_id).'/epics/'.self::encodePath($epic_iid).'/discussions'); + } + + /** + * @param int|string $group_id + * @param int $epic_iid + * + * @return mixed + */ + public function showNotes($group_id, int $epic_iid) + { + return $this->get('groups/'.self::encodePath($group_id).'/epics/'.self::encodePath($epic_iid).'/notes'); + } } diff --git a/src/Client.php b/src/Client.php index 4082f1ac..7abc4cc6 100644 --- a/src/Client.php +++ b/src/Client.php @@ -21,6 +21,7 @@ use Gitlab\Api\Groups; use Gitlab\Api\GroupsBoards; use Gitlab\Api\GroupsEpics; +use Gitlab\Api\GroupsIterations; use Gitlab\Api\GroupsMilestones; use Gitlab\Api\IssueBoards; use Gitlab\Api\IssueLinks; @@ -208,6 +209,14 @@ public function groupsEpics(): GroupsEpics return new GroupsEpics($this); } + /** + * @return GroupsEpics + */ + public function groupsIterations(): GroupsIterations + { + return new GroupsIterations($this); + } + /** * @return GroupsMilestones */