tanuki v0.2.0 Tanuki.Projects.Repository.Branches
Summary
Functions
POST /projects/:id/repository/branches
DELETE /projects/:id/repository/branches/:branch
GET /projects/:id/repository/branches/:branch
GET /projects/:id/repository/branches
PUT /projects/:id/repository/branches/:branch/protect
PUT /projects/:id/repository/branches/:branch/unprotect
Functions
POST /projects/:id/repository/branches
Parameters:
- branch_name (required) - The name of the branch
- ref (required) - The branch name or commit SHA to create branch from
DELETE /projects/:id/repository/branches/:branch
It returns 200 if it succeeds, 404 if the branch to be deleted does not exist or 400 for other reasons. In case of an error, an explaining message is provided.
GET /projects/:id/repository/branches/:branch
Lists a specific branch of a project.
PUT /projects/:id/repository/branches/:branch/protect
Protects a single branch of a project.