tanuki v0.0.1 Tanuki.Projects.Repositories

Summary

Functions

GET /projects/:id/repository/archive

GET /projects/:id/repository/blobs/:sha

GET /projects/:id/repository/contributors

GET /projects/:id/repository/compare

GET /projects/:id/repository/raw_blobs/:sha

GET /projects/:id/repository/tree

Functions

archive(id, client, params \\ [])

GET /projects/:id/repository/archive

Get an archive of the repository

Parameters:

  • sha (optional) - The commit SHA to download defaults to the tip of the default branch
blobs(id, sha, client, params)

GET /projects/:id/repository/blobs/:sha

Get the raw file contents for a file by commit SHA and path.

Parameters:

  • filepath (required) - The path the file
contributors(id, client)

GET /projects/:id/repository/contributors

Get repository contributors list

diff(id, client, params)

GET /projects/:id/repository/compare

Compare branches, tags or commits

Parameters:

  • from (required) - the commit SHA or branch name
  • to (required) - the commit SHA or branch name
raw_blobs(id, sha, client)

GET /projects/:id/repository/raw_blobs/:sha

Get the raw file contents for a blob by blob SHA.

tree(id, client, params \\ [])

GET /projects/:id/repository/tree

Get a list of repository files and directories in a project.

Parameters:

  • path (optional) - The path inside repository. Used to get contend of subdirectories
  • ref_name (optional) - The name of a repository branch or tag or if not given the default branch