Skip to content

Commit c2460ff

Browse files
Artistanm1guelpf
authored andcommitted
1 parent bb604f5 commit c2460ff

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

lib/Gitlab/Api/Projects.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,4 +717,24 @@ public function deployment($project_id, $deployment_id)
717717
{
718718
return $this->get($this->getProjectPath($project_id, 'deployments/'.$this->encodePath($deployment_id)));
719719
}
720+
721+
/**
722+
* @param mixed $project_id
723+
* @param array $params
724+
* @return mixed
725+
*/
726+
public function addShare($project_id, array $params = array())
727+
{
728+
return $this->post($this->getProjectPath($project_id, 'share'), $params);
729+
}
730+
731+
/**
732+
* @param mixed $project_id
733+
* @param int $group_id
734+
* @return mixed
735+
*/
736+
public function removeShare($project_id, $group_id)
737+
{
738+
return $this->delete($this->getProjectPath($project_id, 'services/'.$group_id));
739+
}
720740
}

0 commit comments

Comments
 (0)