Skip to content

Commit

Permalink
fix(Apps): use /orgs/ORG/installation
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Ellis <awellis89@gmail.com>
  • Loading branch information
ellisio committed Mar 1, 2022
1 parent 37b1679 commit 4d53365
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Github/Api/Apps.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function getInstallationForOrganization($org)
{
$this->configurePreviewHeader();

return $this->get('/org/'.rawurldecode($org).'/installation');
return $this->get('/orgs/'.rawurldecode($org).'/installation');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion test/Github/Tests/Api/AppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function shouldGetInstallationForOrganization()
$api = $this->getApiMock();
$api->expects($this->once())
->method('get')
->with('/org/1234/installation')
->with('/orgs/1234/installation')
->willReturn($result);

$this->assertEquals($result, $api->getInstallationForOrganization('1234'));
Expand Down

0 comments on commit 4d53365

Please sign in to comment.