diff options
author | JakobDev <jakobdev@gmx.de> | 2023-05-23 12:10:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-23 18:10:23 +0800 |
commit | 25dc1556cd70b567a4920beb002a0addfbfd6ef2 (patch) | |
tree | 7857b6b323818a1b4f84a5b7c128d06bc6aedf2b /modules | |
parent | abcf5a7b5e2c3df951b8048317a99a89b040b489 (diff) | |
download | gitea-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.go | 10 |
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"` +} |