We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d50da9c commit a66cd9cCopy full SHA for a66cd9c
lib/Gitlab/Model/Project.php
@@ -104,6 +104,18 @@ public function removeMember($user_id)
104
return true;
105
}
106
107
+ public function teams()
108
+ {
109
+ $data = $this->api('teams')->all($this->id);
110
+
111
+ $teams = array();
112
+ foreach ($data as $team) {
113
+ $teams[] = Team::fromArray($this->getClient(), $team);
114
+ }
115
116
+ return $teams;
117
118
119
public function addToTeam($team_id, $greatest_access_level)
120
{
121
$team = new Team($team_id, $this->getClient());
0 commit comments