View Source Tentacat.Repositories.Statuses (Tentacat v2.5.0)
Summary
Functions
Create a Status.
Get the combined Status for a specific Ref.
List Statuses for a specific Ref.
Functions
@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
@spec find(Tentacat.Client.t(), binary(), binary(), binary()) :: Tentacat.response()
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
@spec list(Tentacat.Client.t(), binary(), binary(), binary()) :: Tentacat.response()
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