View Source Tentacat.Repositories.Forks (Tentacat v2.5.0)

Summary

Functions

Creates a new fork of a repository.

List forks of a repository.

Functions

Link to this function

create(client \\ %Client{}, owner, repo, body)

View Source
@spec create(Tentacat.Client.t(), binary(), binary(), map()) :: Tentacat.response()

Creates a new fork of a repository.

Example

Tentacat.Repositories.Forks.create "elixir-lang", "elixir", "tinfoil", %{}
Tentacat.Repositories.Forks.create "elixir-lang", "elixir", "tinfoil", %{organization: "tinfoil"}

More info at: https://developer.github.com/v3/repos/forks/#create-a-fork

Link to this function

list(client \\ %Client{}, owner, repo)

View Source

List forks of a repository.

Example

Tentacat.Repositories.Forks.list "elixir-lang", "elixir"

More info at: https://developer.github.com/v3/repos/forks/