Tentacat v1.6.0 Tentacat.Commits View Source
Link to this section Summary
Functions
Compare two commits
Filter commits on a repository. Parameters are sha
, path
, author
, since
, until
Get a single commit
List commits on a repository
Link to this section Functions
Link to this function
compare(client \\ %Client{}, base, head, owner, repo)
View Source
compare(client \\ %Client{}, base, head, owner, repo)
View Source
compare(Tentacat.Client.t(), any(), any(), binary(), binary()) ::
Tentacat.response()
compare(Tentacat.Client.t(), any(), any(), binary(), binary()) :: Tentacat.response()
Compare two commits
Example
Tentacat.Commits.compare(client, base, head, "elixir-lang", "elixir")
More info at: https://developer.github.com/v3/repos/commits/#compare-two-commits
Link to this function
filter(client \\ %Client{}, owner, repo, filters)
View Source
filter(client \\ %Client{}, owner, repo, filters)
View Source
filter(Tentacat.Client.t(), binary(), binary(), Keyword.t() | map()) ::
Tentacat.response()
filter(Tentacat.Client.t(), binary(), binary(), Keyword.t() | map()) :: Tentacat.response()
Filter commits on a repository. Parameters are sha
, path
, author
, since
, until
.
Example
Tentacat.Commits.filter(client, "elixir-lang", "elixir", %{sha: "my-branch"})
More info at: https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository
Link to this function
find(client \\ %Client{}, sha, owner, repo)
View Source
find(client \\ %Client{}, sha, owner, repo)
View Source
find(Tentacat.Client.t(), any(), binary(), binary()) :: Tentacat.response()
find(Tentacat.Client.t(), any(), binary(), binary()) :: Tentacat.response()
Get a single commit
Example
Tentacat.Commits.find(client, "6dcb09b", "elixir-lang", "elixir")
More info at: http:\developer.github.com/v3/repos/releases/#get-a-single-commit
Link to this function
list(client \\ %Client{}, owner, repo)
View Source
list(client \\ %Client{}, owner, repo)
View Source
list(Tentacat.Client.t(), binary(), binary()) :: Tentacat.response()
list(Tentacat.Client.t(), binary(), binary()) :: Tentacat.response()
List commits on a repository
Example
Tentacat.Commits.list(client, "elixir-lang", "elixir")
More info at: https://developer.github.com/v3/repos/commits/#list-commits-on-a-repository