Additional API support for labels (#3290)

* Add API support for labels.

* Error handling for adding/replacing multiple issue labels

* Revisions to function names and error handling. Use issue.ClearLabels in replace/clear functions

* Additional code cleanup
This commit is contained in:
lstahlman authored and 无闻 committed 2016-08-03 09:24:16 -07:00
1 parent b1133c9934
commit 2eeb0ec9b0
5 files changed
+399 -1

No files matched your search

+1
View File
@@ -129,6 +129,7 @@ func ToDeployKey(apiLink string, key *models.DeployKey) *api.DeployKey {
func ToLabel(label *models.Label) *api.Label {
return &api.Label{
ID: label.ID,
Name: label.Name,
Color: label.Color,
}