diff --git a/src/Api/Projects.php b/src/Api/Projects.php index 3f5d1962..7d1d86b8 100644 --- a/src/Api/Projects.php +++ b/src/Api/Projects.php @@ -1637,9 +1637,9 @@ public function deleteAllMergedBranches($project_id) * * @return mixed */ - public function projectAccessTokens($project_id) + public function projectAccessTokens($project_id, bool $active = null) { - return $this->get($this->getProjectPath($project_id, 'access_tokens')); + return $this->get($this->getProjectPath($project_id, 'access_tokens'), (null !== $active) ? ['state' => $active ? 'active' : 'inactive'] : []); } /**