Skip to content

Commit 1bce18e

Browse files
committed
feat: stars on projects
methods star() to star a project and starrers() to get the list of project starrers
1 parent 93f0181 commit 1bce18e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/Api/Projects.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,6 +1457,26 @@ public function removeShare($project_id, $group_id)
14571457
return $this->delete($this->getProjectPath($project_id, 'share/'.$group_id));
14581458
}
14591459

1460+
/**
1461+
* @param int|string $project_id
1462+
*
1463+
* @return mixed
1464+
*/
1465+
public function starrers($project_id)
1466+
{
1467+
return $this->get($this->getProjectPath($project_id, 'starrers'));
1468+
}
1469+
1470+
/**
1471+
* @param int|string $project_id
1472+
*
1473+
* @return mixed
1474+
*/
1475+
public function star($project_id)
1476+
{
1477+
return $this->post($this->getProjectPath($project_id, 'star'));
1478+
}
1479+
14601480
/**
14611481
* @param int|string $project_id
14621482
*

0 commit comments

Comments
 (0)