Bitbucket v0.1.0 Bitbucket.Repositories View Source

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

Link to this section Summary

Link to this section Functions

Link to this function

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

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

Bitbucket.Repositories.create(client, "tentacat", private: false)

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

Deleting a repository requires admin access. repository:delete scope is required.

Example

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

More info at: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D#delete

Link to this function

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

List current user's Repositories.

Examples

Bitbucket.Repositories.list_mine(client)

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

More info at: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories

Link to this function

list_public(client \\ %Client{}, params \\ [], options \\ []) View Source

List all public repositories

Example

Bitbucket.Repositories.list_public
Bitbucket.Repositories.list_public(client)

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

Link to this function

list_team(client \\ %Client{}, username, params \\ [], options \\ []) View Source

List organizations Repositories.

Example

Bitbucket.Repositories.list_team(client, "elixir-lang")

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

Link to this function

list_users(client \\ %Client{}, owner, params \\ [], options \\ []) View Source

List users Repositories.

Example

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

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

Link to this function

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

Link to this function

repo_get(client \\ %Client{}, owner, repo, params \\ []) View Source

Get

Example

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

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