Skip to content

Commit 22cbc82

Browse files
committed
Bugfix creating env
1 parent fcc99dd commit 22cbc82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Github/Api/Environment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function show($username, $repository, $name)
5353
*/
5454
public function createOrUpdate($username, $repository, $name, array $params = [])
5555
{
56-
return $this->put('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/environments', $params);
56+
return $this->put('/repos/'.rawurlencode($username).'/'.rawurlencode($repository).'/environments/'.rawurlencode($name), $params);
5757
}
5858

5959
/**

0 commit comments

Comments
 (0)