1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

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.
This commit is contained in:
qwerty287
2021-12-17 22:29:09 +01:00
committed by GitHub
parent 4bbbf35654
commit 4cbc865d83
5 changed files with 14 additions and 5 deletions

View File

@@ -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:"-"`
}