Tentacat v2.2.0 Tentacat.Repositories.Statuses View Source

Link to this section Summary

Functions

Get the combined Status for a specific Ref

List Statuses for a specific Ref

Link to this section Functions

Link to this function

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

View Source

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