Skip to content

Commit 454278d

Browse files
Dickriven Chellemboyeem1guelpf
authored andcommitted
Update Client.php
add environments api call
1 parent d4af179 commit 454278d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/Gitlab/Client.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,14 @@ public function deployKeys()
126126
return new Api\DeployKeys($this);
127127
}
128128

129+
/**
130+
* @return Api\Environments
131+
*/
132+
public function environments()
133+
{
134+
return new Api\Environments($this);
135+
}
136+
129137
/**
130138
* @return Api\Groups
131139
*/
@@ -267,6 +275,9 @@ public function api($name)
267275
case 'deploy_keys':
268276
return $this->deployKeys();
269277

278+
case 'environments':
279+
return $this->environments();
280+
270281
case 'groups':
271282
return $this->groups();
272283

0 commit comments

Comments
 (0)