aboutsummaryrefslogtreecommitdiffstats
path: root/modules/structs/issue.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/structs/issue.go')
-rw-r--r--modules/structs/issue.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/structs/issue.go b/modules/structs/issue.go
index 3682191be5..322ac1e4ca 100644
--- a/modules/structs/issue.go
+++ b/modules/structs/issue.go
@@ -203,7 +203,7 @@ func (l *IssueTemplateStringSlice) UnmarshalYAML(value *yaml.Node) error {
if err != nil {
return err
}
- for _, v := range strings.Split(str, ",") {
+ for v := range strings.SplitSeq(str, ",") {
if v = strings.TrimSpace(v); v == "" {
continue
}
@@ -262,7 +262,13 @@ func (it IssueTemplate) Type() IssueTemplateType {
// IssueMeta basic issue information
// swagger:model
type IssueMeta struct {
- Index int64 `json:"index"`
+ Index int64 `json:"index"`
+ // owner of the issue's repo
Owner string `json:"owner"`
Name string `json:"repo"`
}
+
+// LockIssueOption options to lock an issue
+type LockIssueOption struct {
+ Reason string `json:"lock_reason"`
+}