From 82c01f1a9cc5f329120241fb4d81e61c3d1ce7b5 Mon Sep 17 00:00:00 2001 From: Manuel Kuhlmann Date: Wed, 4 Jan 2017 16:37:41 +0100 Subject: [PATCH] Rename .gogs to .gitea and comply with github template guidelines (#568) Signed-off-by: Manuel Kuhlmann --- routers/repo/issue.go | 5 ++++- routers/repo/pull.go | 9 ++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/routers/repo/issue.go b/routers/repo/issue.go index edc6219d3373a..a43a3d992bc91 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -50,8 +50,11 @@ var ( // IssueTemplateCandidates issue templates IssueTemplateCandidates = []string{ "ISSUE_TEMPLATE.md", - ".gogs/ISSUE_TEMPLATE.md", + "issue_template.md", + ".gitea/ISSUE_TEMPLATE.md", + ".gitea/issue_template.md", ".github/ISSUE_TEMPLATE.md", + ".github/issue_template.md", } ) diff --git a/routers/repo/pull.go b/routers/repo/pull.go index 583f3b0a355f0..56a6a79f613e9 100644 --- a/routers/repo/pull.go +++ b/routers/repo/pull.go @@ -31,9 +31,12 @@ const ( var ( pullRequestTemplateCandidates = []string{ - "PULL_REQUEST.md", - ".gogs/PULL_REQUEST.md", - ".github/PULL_REQUEST.md", + "PULL_REQUEST_TEMPLATE.md", + "pull_request_template.md", + ".gitea/PULL_REQUEST_TEMPLATE.md", + ".gitea/pull_request_template.md", + ".github/PULL_REQUEST_TEMPLATE.md", + ".github/pull_request_template.md", } )