Skip to content

Commit 4d53365

Browse files
committed
fix(Apps): use /orgs/ORG/installation
Signed-off-by: Andrew Ellis <[email protected]>
1 parent 37b1679 commit 4d53365

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Github/Api/Apps.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function getInstallationForOrganization($org)
8282
{
8383
$this->configurePreviewHeader();
8484

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

8888
/**

test/Github/Tests/Api/AppTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function shouldGetInstallationForOrganization()
6666
$api = $this->getApiMock();
6767
$api->expects($this->once())
6868
->method('get')
69-
->with('/org/1234/installation')
69+
->with('/orgs/1234/installation')
7070
->willReturn($result);
7171

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

0 commit comments

Comments
 (0)