Tentacat v2.2.0 Tentacat.Git.Blobs View Source
Link to this section Summary
Link to this section Functions
Link to this function
create(client \\ %Client{}, owner, repo, body)
View Sourcecreate(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 Sourceget(Tentacat.Client.t(), binary(), binary(), binary()) :: Tentacat.response()
Get the Blob content and metadata for a specific sha
Example
Tentacat.Git.Blobs.get "elixir-lang", "elixir", "7491bda5196f78536e5acc9b7c90a97170e4db0a"
More info at: https://developer.github.com/v3/git/blobs/#get-a-blob