mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
[API] Fix inconsistent label color format (#10129)
* update and use labelColorPattern * add TestCases * fix lint * # optional for templates * fix typo * some more * fix lint of **master**
This commit is contained in:
@@ -22,7 +22,7 @@ type CreateLabelOption struct {
|
||||
Name string `json:"name" binding:"Required"`
|
||||
// required:true
|
||||
// example: #00aabb
|
||||
Color string `json:"color" binding:"Required;Size(7)"`
|
||||
Color string `json:"color" binding:"Required"`
|
||||
Description string `json:"description"`
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user