From 1bce18e25969a08de45ed49e666b359eb74fd451 Mon Sep 17 00:00:00 2001 From: Cerdic Date: Mon, 19 Feb 2024 15:59:38 +0100 Subject: [PATCH] feat: stars on projects methods star() to star a project and starrers() to get the list of project starrers --- src/Api/Projects.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/Api/Projects.php b/src/Api/Projects.php index d0c66833..49189d94 100644 --- a/src/Api/Projects.php +++ b/src/Api/Projects.php @@ -1457,6 +1457,26 @@ public function removeShare($project_id, $group_id) return $this->delete($this->getProjectPath($project_id, 'share/'.$group_id)); } + /** + * @param int|string $project_id + * + * @return mixed + */ + public function starrers($project_id) + { + return $this->get($this->getProjectPath($project_id, 'starrers')); + } + + /** + * @param int|string $project_id + * + * @return mixed + */ + public function star($project_id) + { + return $this->post($this->getProjectPath($project_id, 'star')); + } + /** * @param int|string $project_id *