summaryrefslogtreecommitdiffstats
path: root/modules/issue/template/template_test.go
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2023-01-26 23:45:49 -0500
committerGitHub <noreply@github.com>2023-01-26 22:45:49 -0600
commit2903afb78f77ed94c0515a6e58e27c23a13f2671 (patch)
tree414c2957fe25c221bce9fe432fc4c6b844e321d7 /modules/issue/template/template_test.go
parent642db3c8f7d2faf9ff02867cf1e1287fa0e1d593 (diff)
downloadgitea-2903afb78f77ed94c0515a6e58e27c23a13f2671.tar.gz
gitea-2903afb78f77ed94c0515a6e58e27c23a13f2671.zip
Allow issue templates to not render title (#22589)
This adds a yaml attribute that will allow the option for when markdown is rendered that the title will be not included in the output Based on work from @brechtvl
Diffstat (limited to 'modules/issue/template/template_test.go')
-rw-r--r--modules/issue/template/template_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/issue/template/template_test.go b/modules/issue/template/template_test.go
index 0845642cd3..0cdddd0c85 100644
--- a/modules/issue/template/template_test.go
+++ b/modules/issue/template/template_test.go
@@ -640,6 +640,7 @@ body:
description: Description of input
placeholder: Placeholder of input
value: Value of input
+ hide_label: true
validations:
required: true
is_number: true
@@ -681,8 +682,6 @@ body:
` + "```bash\nValue of id2\n```" + `
-### Label of input
-
Value of id3
### Label of dropdown