Skip to content

Commit 941b00e

Browse files
committed
[BUGFIX] Github -> Repos -> Statuses -> Show gives 404
If you request a github repo status via api $githubClient->api('repository')->statuses()->show(... the HTTP client throws a 404, because the request URL build "//repos/...".
1 parent 3cb9b2c commit 941b00e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Github/Api/Repository/Statuses.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Statuses extends AbstractApi
2222
*/
2323
public function show($username, $repository, $sha)
2424
{
25-
return $this->get('/repos/'.urlencode($username).'/'.urlencode($repository).'/statuses/'.urlencode($sha));
25+
return $this->get('repos/'.urlencode($username).'/'.urlencode($repository).'/statuses/'.urlencode($sha));
2626
}
2727

2828
/**

0 commit comments

Comments
 (0)