diff options
author | Manuel Kuhlmann <mkuhlmann@users.noreply.github.com> | 2017-01-05 01:48:23 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-05 08:48:23 +0800 |
commit | dc3ff9f2abc935f06940de56d613dacde3ee8c13 (patch) | |
tree | 92d5e011075abd13531aeba9143dc728ba115cf2 /routers/repo | |
parent | 467202d0a68bf4ee9e198a57b8a1d9ed8e266e61 (diff) | |
download | gitea-dc3ff9f2abc935f06940de56d613dacde3ee8c13.tar.gz gitea-dc3ff9f2abc935f06940de56d613dacde3ee8c13.zip |
Rename .gogs to .gitea and comply with github template guidelines (#568) (#582)
Signed-off-by: Manuel Kuhlmann <manuel@mkuhlmann.org>
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/issue.go | 5 | ||||
-rw-r--r-- | 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 edc6219d33..a43a3d992b 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 583f3b0a35..56a6a79f61 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", } ) |