aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJakobDev <jakobdev@gmx.de>2023-05-23 12:10:23 +0200
committerGitHub <noreply@github.com>2023-05-23 18:10:23 +0800
commit25dc1556cd70b567a4920beb002a0addfbfd6ef2 (patch)
tree7857b6b323818a1b4f84a5b7c128d06bc6aedf2b /modules
parentabcf5a7b5e2c3df951b8048317a99a89b040b489 (diff)
downloadgitea-25dc1556cd70b567a4920beb002a0addfbfd6ef2.tar.gz
gitea-25dc1556cd70b567a4920beb002a0addfbfd6ef2.zip
Add API for Label templates (#24602)
This adds API that allows getting the Label templates of the Gitea Instance
Diffstat (limited to 'modules')
-rw-r--r--modules/structs/issue_label.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/structs/issue_label.go b/modules/structs/issue_label.go
index 5bb6cc3b84..2610d3e93f 100644
--- a/modules/structs/issue_label.go
+++ b/modules/structs/issue_label.go
@@ -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"`
+}