Add API for Label templates (#24602)

This adds API that allows getting the Label templates of the Gitea
Instance
This commit is contained in:
JakobDev 2023-05-23 12:10:23 +02:00 committed by GitHub
parent abcf5a7b5e
commit 25dc1556cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 258 additions and 0 deletions

View file

@ -44,3 +44,13 @@ type IssueLabelsOption struct {
// list of label IDs
Labels []int64 `json:"labels"`
}
// LabelTemplate info of a Label template
type LabelTemplate struct {
Name string `json:"name"`
// example: false
Exclusive bool `json:"exclusive"`
// example: 00aabb
Color string `json:"color"`
Description string `json:"description"`
}