From 56e5cc026ba926452c7136604d5214f97bbe540b Mon Sep 17 00:00:00 2001 From: Zettat123 Date: Tue, 13 Aug 2024 02:27:18 +0000 Subject: [PATCH] Update issue template for issue assignees (#48) Related to https://github.com/go-gitea/gitea/pull/31083 Reviewed-on: https://gitea.com/gitea/docs/pulls/48 Reviewed-by: Jason Song Co-authored-by: Zettat123 Co-committed-by: Zettat123 --- docs/usage/issue-pull-request-templates.md | 5 ++++- .../current/usage/issue-pull-request-templates.md | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/usage/issue-pull-request-templates.md b/docs/usage/issue-pull-request-templates.md index a746bfba..3dd2d812 100644 --- a/docs/usage/issue-pull-request-templates.md +++ b/docs/usage/issue-pull-request-templates.md @@ -99,6 +99,7 @@ name: "Template Name" about: "This template is for testing!" title: "[TEST] " ref: "main" +assignees: ["user1"] labels: - bug @@ -111,7 +112,9 @@ 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, +`[TEST] ` while the issue body would be pre-populated with `This is the template!`. +The issue would be assigned to `user1`. +The issue would also be assigned two labels, `bug` and `help needed`, and the issue will have a reference to `main`. ## Syntax for yaml template diff --git a/i18n/zh-cn/docusaurus-plugin-content-docs/current/usage/issue-pull-request-templates.md b/i18n/zh-cn/docusaurus-plugin-content-docs/current/usage/issue-pull-request-templates.md index 69a8b416..7302368b 100644 --- a/i18n/zh-cn/docusaurus-plugin-content-docs/current/usage/issue-pull-request-templates.md +++ b/i18n/zh-cn/docusaurus-plugin-content-docs/current/usage/issue-pull-request-templates.md @@ -115,7 +115,7 @@ labels: This is the template! ``` -上面的示例表示用户从列表中选择一个工单模板时,列表会展示模板名称 `Template Name` 和模板描述 `This template is for testing!`。 同时,标题会预先填充为 `[TEST]`,而正文将预先填充 `This is the template!`。 最后,Issue 还会被分配两个标签,`bug` 和 `help needed`,并且将问题指向 `main` 分支。 +上面的示例表示用户从列表中选择一个工单模板时,列表会展示模板名称 `Template Name` 和模板描述 `This template is for testing!`。 同时,标题会预先填充为 `[TEST]`,而正文将预先填充 `This is the template!`。该 Issue 会被指派给 `user1`。 最后,Issue 还会被分配两个标签,`bug` 和 `help needed`,并且将问题指向 `main` 分支。 ## YAML 模板语法