summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorqwerty287 <80460567+qwerty287@users.noreply.github.com>2021-12-17 22:29:09 +0100
committerGitHub <noreply@github.com>2021-12-17 21:29:09 +0000
commit4cbc865d835eb49722d22f8ac5019ccc17582a16 (patch)
tree2a679577d7d6560a8f45aba6a06d945e75e85e82 /docs
parent4bbbf356547557bd6b36d1d6cb73540a5febf120 (diff)
downloadgitea-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 'docs')
-rw-r--r--docs/content/doc/usage/issue-pull-request-templates.en-us.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/content/doc/usage/issue-pull-request-templates.en-us.md b/docs/content/doc/usage/issue-pull-request-templates.en-us.md
index 44291635c9..218b8a3642 100644
--- a/docs/content/doc/usage/issue-pull-request-templates.en-us.md
+++ b/docs/content/doc/usage/issue-pull-request-templates.en-us.md
@@ -69,6 +69,7 @@ Inside the directory can be multiple issue templates with the form
name: "Template Name"
about: "This template is for testing!"
title: "[TEST] "
+ref: "main"
labels:
- bug
@@ -82,4 +83,4 @@ This is the template!
In the above example, when a user is presented with the list of issues they can submit, this would show as `Template Name` with the description
`This template is for testing!`. When submitting an issue with the above example, the issue title would be pre-populated with
`[TEST] ` while the issue body would be pre-populated with `This is the template!`. The issue would also be assigned two labels,
-`bug` and `help needed`.
+`bug` and `help needed`, and the issue will have a reference to `main`.