Tentacat v0.7.2 Tentacat.Repositories

The Repository Webhooks API allows repository admins to manage the post-receive hooks for a repository.

Summary

Functions

create(repo, client, options \\ [])

Specs

create(binary, Tentacat.Client.t, list) :: Tentacat.response

Create a new repository for the authenticated user.

Possible values for options:

  • [description: "Simple Elixir wrapper for the GitHub API"]
  • [homepage: "http://www.github.com/edgurgel/tentacat"]
  • [private: false]
  • [has_issues: true]
  • [has_wiki: false]
  • [has_downloads: true]
  • [team_id: 123]
  • [auto_init: false]
  • [gitignore_template: "Haskell"]
  • [license_template: "mit"]j

Example

Tentacat.Repositories.create("tentacat", [private: false], client)

More info at: https://developer.github.com/v3/repos/#create

delete(owner, repo, client)

Specs

delete(binary, binary, Tentacat.Client.t) :: Tentacat.response

Deleting a repository requires admin access. If OAuth is used, the delete_repo scope is required.

Example

Tentacat.Repositories.delete("soudqwiggle", "tentacat", client)

More info at: https://developer.github.com/v3/repos/#delete-a-repository

list_mine(client, params \\ [], options \\ [])

List current user’s Repositories.

Examples

Tentacat.Repositories.list_mine(client)

Tentacat.Repositories.list_mine(client, type: "owner")

More info at: https://developer.github.com/v3/repos/#list-your-repositories

list_orgs(org, client \\ %Tentacat.Client{}, params \\ [], options \\ [])

List organizations Repositories.

Example

Tentacat.Repositories.list_orgs("elixir-lang", client)

More info at: https://developer.github.com/v3/repos/#list-organization-repositories

list_public(client \\ %Tentacat.Client{}, params \\ [], options \\ [])

List all public repositories

Example

Tentacat.Repositories.list_public
Tentacat.Repositories.list_public(client)

More info at: https://developer.github.com/v3/repos/#list-all-public-repositories

list_users(owner, client \\ %Tentacat.Client{}, params \\ [], options \\ [])

List users Repositories.

Example

Tentacat.Repositories.list_users("steve", client)

More info at: https://developer.github.com/v3/repos/#list-user-repositories

org_create(org, repo, client, options \\ [])

Specs

org_create(binary, binary, Tentacat.Client.t, list) :: Tentacat.response
repo_get(owner, repo, client \\ %Tentacat.Client{}, params \\ [])

Get

Example

Tentacat.Repositories.repo_get("elixir-conspiracy", "pacman")
Tentacat.Repositories.repo_get("elixir-conspiracy", "pacman", client)

More info at: https://developer.github.com/v3/repos/#get