From 25dc1556cd70b567a4920beb002a0addfbfd6ef2 Mon Sep 17 00:00:00 2001 From: JakobDev Date: Tue, 23 May 2023 12:10:23 +0200 Subject: Add API for Label templates (#24602) This adds API that allows getting the Label templates of the Gitea Instance --- modules/structs/issue_label.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules/structs') 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"` +} -- cgit v1.2.3