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

Summary

Functions

Get the combined Status for a specific Ref.

List Statuses for a specific Ref.

Functions

Link to this function

create(client, owner, repo, sha, body)

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

Create a Status.

Comment body example:

%{
   "state": "success",
   "target_url": "https://example.com/build/status",
   "description": "The build succeeded!",
   "context": "continuous-integration/jenkins"
 }

Example

Tentacat.Repositories.Statuses.create client, "elixir-lang", "elixir", 2974, comment_body

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

Link to this function

find(client \\ %Client{}, owner, repo, ref)

View Source

Get the combined Status for a specific Ref.

Example

Tentacat.Repositories.Statuses.find "elixir-lang", "elixir", "a8ce2485b1260245a331f1a56c53ab1b965d6dc5"
Tentacat.Repositories.Statuses.find client, "elixir-lang", "elixir", "master"
Tentacat.Repositories.Statuses.find client, "elixir-lang", "elixir", "1.2.4"

More info at: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref

Link to this function

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

View Source

List Statuses for a specific Ref.

Example

Tentacat.Repositories.Statuses.list "elixir-lang", "elixir", "a8ce2485b1260245a331f1a56c53ab1b965d6dc5"
Tentacat.Repositories.Statuses.list client, "elixir-lang", "elixir", "master"
Tentacat.Repositories.Statuses.list client, "elixir-lang", "elixir", "1.2.4"

More info at: https://developer.github.com/v3/repos/statuses/#list-statuses-for-a-specific-ref