Skip to content

Commit 1a0b96d

Browse files
authored
Fix
1 parent 62b16fc commit 1a0b96d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Github/Api/Apps.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function listRepositories($userId = null)
7474
*/
7575
public function addRepository($installationId, $repositoryId)
7676
{
77-
return $this->put('/installation/'.rawurlencode($installationId).'/repositories/'.rawurlencode($repositoryId));
77+
return $this->put('/installations/'.rawurlencode($installationId).'/repositories/'.rawurlencode($repositoryId));
7878
}
7979

8080
/**
@@ -89,6 +89,6 @@ public function addRepository($installationId, $repositoryId)
8989
*/
9090
public function removeRepository($installationId, $repositoryId)
9191
{
92-
return $this->delete('/app/'.rawurlencode($installationId).'/repositories/'.rawurlencode($repositoryId));
92+
return $this->delete('/installations/'.rawurlencode($installationId).'/repositories/'.rawurlencode($repositoryId));
9393
}
9494
}

0 commit comments

Comments
 (0)