From 5f127a729e570fafe9364ef1768c2b79afde7261 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Fri, 9 Sep 2022 11:22:33 +0800 Subject: [PATCH] Fix typo of issue template name (#21117) Should be - .gitea/issue_template.md - .gitea/issue_template.yaml - .gitea/issue_template.~~md~~yml Related to #20987, #21030. --- docs/content/doc/usage/issue-pull-request-templates.en-us.md | 2 +- docs/content/doc/usage/issue-pull-request-templates.zh-cn.md | 2 +- routers/web/repo/issue.go | 2 +- 3 files changed, 3 insertions(+), 3 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 f1d577e77..0cf63625b 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 @@ -42,7 +42,7 @@ Possible file names for issue templates: - `.gitea/ISSUE_TEMPLATE.yml` - `.gitea/issue_template.md` - `.gitea/issue_template.yaml` -- `.gitea/issue_template.md` +- `.gitea/issue_template.yml` - `.github/ISSUE_TEMPLATE.md` - `.github/ISSUE_TEMPLATE.yaml` - `.github/ISSUE_TEMPLATE.yml` diff --git a/docs/content/doc/usage/issue-pull-request-templates.zh-cn.md b/docs/content/doc/usage/issue-pull-request-templates.zh-cn.md index a697f9797..866378e2a 100644 --- a/docs/content/doc/usage/issue-pull-request-templates.zh-cn.md +++ b/docs/content/doc/usage/issue-pull-request-templates.zh-cn.md @@ -62,7 +62,7 @@ Gitea 支持两种格式的模板:Markdown 和 YAML。 - `.gitea/ISSUE_TEMPLATE.yml` - `.gitea/issue_template.md` - `.gitea/issue_template.yaml` -- `.gitea/issue_template.md` +- `.gitea/issue_template.yml` - `.github/ISSUE_TEMPLATE.md` - `.github/ISSUE_TEMPLATE.yaml` - `.github/ISSUE_TEMPLATE.yml` diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index 06e003bff..592f7eac8 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -81,7 +81,7 @@ var IssueTemplateCandidates = []string{ ".gitea/ISSUE_TEMPLATE.yml", ".gitea/issue_template.md", ".gitea/issue_template.yaml", - ".gitea/issue_template.md", + ".gitea/issue_template.yml", ".github/ISSUE_TEMPLATE.md", ".github/ISSUE_TEMPLATE.yaml", ".github/ISSUE_TEMPLATE.yml",