1
0
Fork 0
forked from forgejo/forgejo

Add missing description of label on API (#7159)

* add missing description of label on API

* fix comment head

* fix swagger
This commit is contained in:
Lunny Xiao 2019-06-16 20:39:52 +08:00 committed by GitHub
parent 367aeb169a
commit d8168b356d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 32 additions and 11 deletions

View file

@ -76,9 +76,10 @@ type Label struct {
// APIFormat converts a Label to the api.Label format
func (label *Label) APIFormat() *api.Label {
return &api.Label{
ID: label.ID,
Name: label.Name,
Color: strings.TrimLeft(label.Color, "#"),
ID: label.ID,
Name: label.Name,
Color: strings.TrimLeft(label.Color, "#"),
Description: label.Description,
}
}