View Source Tentacat.Git.Blobs (Tentacat v2.4.0)

Summary

Functions

Create a blob in the repository.

Get the Blob content and metadata for a specific file SHA.

Functions

Link to this function

create(client \\ %Client{}, owner, repo, body)

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

Create a blob in the repository.

Blob body example:

%{
  "content"   => "Content of the blob",
  "encoding"  => "utf-8"
}

Example

Tentacat.Commits.Blobs.create "elixir-lang", "elixir", blob_body

More info at: https://developer.github.com/v3/git/blobs/#create-a-blob

Link to this function

get(client \\ %Client{}, owner, repo, sha)

View Source

Get the Blob content and metadata for a specific file SHA.

Example

Tentacat.Git.Blobs.get "elixir-lang", "elixir", "7491bda5196f78536e5acc9b7c90a97170e4db0a"

More info at: https://developer.github.com/v3/git/blobs/#get-a-blob