Skip to content

Commit 158f8e5

Browse files
Support status keys with slashes
1 parent 2a2e18f commit 158f8e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Api/Repositories/Users/Commit/BuildStatus.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function create(array $params = [])
4444
*/
4545
public function show(string $key, array $params = [])
4646
{
47-
$path = $this->buildBuildStatusPath($key);
47+
$path = $this->buildBuildStatusPath(...explode('/', $key));
4848

4949
return $this->get($path, $params);
5050
}
@@ -59,7 +59,7 @@ public function show(string $key, array $params = [])
5959
*/
6060
public function update(string $key, array $params = [])
6161
{
62-
$path = $this->buildBuildStatusPath($key);
62+
$path = $this->buildBuildStatusPath(...explode('/', $key));
6363

6464
return $this->put($path, $params);
6565
}

0 commit comments

Comments
 (0)