Packages

GitLab API wrapper in Elixir, named after GitLabs mascot

Current section

Files

Jump to
tanuki lib tanuki projects commits.ex
Raw

lib/tanuki/projects/commits.ex

defmodule Tanuki.Projects.Commits do
@doc """
GET /projects/:id/repository/commits
Get a list of repository commits in a project.
"""
def list(id, client), do: Tanuki.get("projects/#{id}/repository/commits", client)
@doc """
GET /projects/:id/repository/commits/:sha
Get a specific commit identified by the commit hash or name of a branch or tag.
"""
def find(id, sha, client), do: Tanuki.get("projects/#{id}/repository/commits/#{sha}", client)
@doc """
GET /projects/:id/repository/commits/:sha/diff
Get the diff of a commit in a project.
"""
def diff(id, sha, client), do: Tanuki.get("projects/#{id}/repository/commits/#{sha}/diff", client)
@doc """
GET /projects/:id/repository/commits/:sha/comments
Get the diff of a commit in a project.
"""
def comments(id, sha, client), do: Tanuki.get("projects/#{id}/repository/commits/#{sha}/comments", client)
end