tanuki v0.2.0 Tanuki.Projects.Labels

Summary

Functions

POST /projects/:id/labels

DELETE /projects/:id/labels

GET /projects/:id/labels

PUT /projects/:id/labels

Functions

create(id, client, params)

POST /projects/:id/labels

Creates a new label for given repository with given name and color.

Parameters:

  • name (required) - The name of the label
  • color (required) - Color of the label given in 6-digit hex notation with leading ‘#’ sign (e.g. #FFAABB)
delete(id, hook_id, client)

DELETE /projects/:id/labels

Deletes a label given by its name.

Parameters:

  • name (required) - The name of the label to be deleted
list(id, client)

GET /projects/:id/labels

Get all labels for given project.

modify(id, client, params)

PUT /projects/:id/labels

Updates an existing label with new name or now color. At least one parameter is required, to update the label.

Parameters:

  • name (required) - The name of the existing label
  • new_name (optional) - The new name of the label
  • color (optional) - New color of the label given in 6-digit hex notation with leading ‘#’ sign (e.g. #FFAABB)