summaryrefslogtreecommitdiffstats
path: root/models/issue_label.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-06-16 20:39:52 +0800
committerGitHub <noreply@github.com>2019-06-16 20:39:52 +0800
commitd8168b356d3ddaf3c38815a46ab075bf5bbe93c6 (patch)
tree96d31b185042027171574e6a370c90f6b3b0e508 /models/issue_label.go
parent367aeb169ac9f213a047bad24bbb3a4f58e3362a (diff)
downloadgitea-d8168b356d3ddaf3c38815a46ab075bf5bbe93c6.tar.gz
gitea-d8168b356d3ddaf3c38815a46ab075bf5bbe93c6.zip
Add missing description of label on API (#7159)
* add missing description of label on API * fix comment head * fix swagger
Diffstat (limited to 'models/issue_label.go')
-rw-r--r--models/issue_label.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/models/issue_label.go b/models/issue_label.go
index 363d4bb814..7af6060f87 100644
--- a/models/issue_label.go
+++ b/models/issue_label.go
@@ -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,
}
}