diff options
author | qwerty287 <80460567+qwerty287@users.noreply.github.com> | 2021-12-17 22:29:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-17 21:29:09 +0000 |
commit | 4cbc865d835eb49722d22f8ac5019ccc17582a16 (patch) | |
tree | 2a679577d7d6560a8f45aba6a06d945e75e85e82 /modules | |
parent | 4bbbf356547557bd6b36d1d6cb73540a5febf120 (diff) | |
download | gitea-4cbc865d835eb49722d22f8ac5019ccc17582a16.tar.gz gitea-4cbc865d835eb49722d22f8ac5019ccc17582a16.zip |
Add option to define refs in issue templates (#17842)
Adds a markdown header option `ref` that allows you to set the ref the issue should belong.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/structs/issue.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/structs/issue.go b/modules/structs/issue.go index a4a5baa90f..c72487fe4d 100644 --- a/modules/structs/issue.go +++ b/modules/structs/issue.go @@ -127,6 +127,7 @@ type IssueTemplate struct { Title string `json:"title" yaml:"title"` About string `json:"about" yaml:"about"` Labels []string `json:"labels" yaml:"labels"` + Ref string `json:"ref" yaml:"ref"` Content string `json:"content" yaml:"-"` FileName string `json:"file_name" yaml:"-"` } |