github v0.11.0 Github.Apps.Installations View Source

GitHub Apps Installations.

Link to this section Summary

Functions

List repositories available for the Installation

Link to this section Functions

Link to this function find!(github_client, installation_id) View Source

Get an installation

Example

iex> client = %Github.Client{jwt_token: "jwt_token"}

iex> client |> Github.Apps.Installations.find!(12345)
%Github.Client.Response{
  body: %{"id" => 12345, ...},
  status: 200,
  ...
}
Link to this function list_repos!(github_client, options \\ []) View Source

List repositories available for the Installation

Example

iex> client = %Github.Client{access_token: "access_token"}

iex> client |> Github.Apps.Installations.list_repos!(page: 1, per_page: 30)
%Github.Client.Response{
  body: [%{"email" => "email@example.com", "primary" => true, "verified" => true, "visibility" => "private"}],
  status: 200,
  ...
}