diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-06-16 20:39:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-16 20:39:52 +0800 |
commit | d8168b356d3ddaf3c38815a46ab075bf5bbe93c6 (patch) | |
tree | 96d31b185042027171574e6a370c90f6b3b0e508 /models/issue_label.go | |
parent | 367aeb169ac9f213a047bad24bbb3a4f58e3362a (diff) | |
download | gitea-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.go | 7 |
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, } } |