API documentation¶
baldrick.github.github_api Module¶
Module to handle GitHub API.
Classes¶
GitHubHandler (repo[, installation]) |
A base class for things that represent things the github app can operate on. |
RepoHandler (repo[, branch, installation]) |
|
PullRequestHandler (repo, number[, installation]) |
baldrick.github.github_auth Module¶
Functions¶
get_app_name () |
Return the login name of the authenticated app. |
get_installation_token (installation) |
Get access token for installation |
get_json_web_token () |
Prepares the JSON Web Token (JWT) based on the private key. |
github_request_headers (installation) |
|
netrc_exists () |
|
repo_to_installation_id (repository) |
Return the installation ID for a repository. |
repo_to_installation_id_mapping () |
Returns a dictionary mapping full repository name to installation id. |