github v0.11.0 Github.Repos.Contents View Source
Repositories Contents.
Link to this section Summary
Functions
Get the contents of a file or directory in a repository
Link to this section Functions
Get the contents of a file or directory in a repository
Example
iex> client = %Github.Client{access_token: "access_token"}
iex> client |> Github.Repos.Contents.find!(
repo_path: "WorkflowCI/github",
path: "README.md",
ref: "master"
)
%Github.Client.Response{
body: %{"path" => "README.md", ...},
status: 200,
...
}