Tentacat v1.6.0 Tentacat.Commits View Source

Link to this section Summary

Functions

Filter commits on a repository. Parameters are sha, path, author, since, until

List commits on a repository

Link to this section Functions

Link to this function

compare(client \\ %Client{}, base, head, owner, repo) View Source
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 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

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 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