mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Be more lenient with label colors (#17752)
Accept 12-bit color specifications.
This commit is contained in:
		@@ -549,7 +549,7 @@ type CreateLabelForm struct {
 | 
			
		||||
	ID          int64
 | 
			
		||||
	Title       string `binding:"Required;MaxSize(50)" locale:"repo.issues.label_title"`
 | 
			
		||||
	Description string `binding:"MaxSize(200)" locale:"repo.issues.label_description"`
 | 
			
		||||
	Color       string `binding:"Required;Size(7)" locale:"repo.issues.label_color"`
 | 
			
		||||
	Color       string `binding:"Required;MaxSize(7)" locale:"repo.issues.label_color"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// Validate validates the fields
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user