From 95e9b4d7a3a74cef5961a5146db8c047a60317a6 Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Fri, 17 Dec 2021 22:29:09 +0100 Subject: [PATCH] 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. --- doc/usage/issue-pull-request-templates.en-us.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/usage/issue-pull-request-templates.en-us.md b/doc/usage/issue-pull-request-templates.en-us.md index 44291635..218b8a36 100644 --- a/doc/usage/issue-pull-request-templates.en-us.md +++ b/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`.