Client
class Client
Class Installations.
Methods
Installations constructor.
List repositories that are accessible to the authenticated installation.
List repositories that are accessible to the authenticated user for an installation.
Add a single repository to an installation.
Remove repository from installation.
No description
No description
Find organization installation.
Find repository installation.
Find user installation.
某用户或组织的 GitHub App 安装请求地址,即用户在此 URL 安装 GitHub App.
No description
No description
No description
Details
at line 26
__construct(Curl $curl, string $api_url)
Installations constructor.
at line 40
mixed
listRepositories()
List repositories that are accessible to the authenticated installation.
at line 54
mixed
listRepositoriesAccessible(int $installation_id)
List repositories that are accessible to the authenticated user for an installation.
at line 70
void
add(int $installation_id, int $repository_id, string $method = 'put')
Add a single repository to an installation.
204
at line 92
void
remove(int $installation_id, int $repository_id)
Remove repository from installation.
204
at line 102
mixed
getAppInfo(string $jwt)
at line 120
mixed
getAccessToken(int $installation_id, string $private_key_path = null)
at line 192
mixed
findOrganizationInstallation(string $org_name)
Find organization installation.
at line 206
mixed
findRepositoryInstallation(string $username, string $repo)
Find repository installation.
at line 220
mixed
findUserInstallation(string $username)
Find user installation.
at line 232
string
getInstallUrl(int $rid)
某用户或组织的 GitHub App 安装请求地址,即用户在此 URL 安装 GitHub App.