Skip to content

Commit

Permalink
feat: stars on projects
Browse files Browse the repository at this point in the history
methods star() to star a project and starrers() to get the list of project starrers
  • Loading branch information
Cerdic committed Feb 19, 2024
1 parent 93f0181 commit 1bce18e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Api/Projects.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 1bce18e

Please sign in to comment.