summaryrefslogtreecommitdiffstats
path: root/services/issue
diff options
context:
space:
mode:
authorCaesar Schinas <caesar@caesarschinas.com>2023-08-25 22:49:17 +0200
committerGergely Nagy <forgejo@gergo.csillger.hu>2024-02-06 10:22:32 +0100
commit271db6ff226f0747ce45e16e296b41ec972dc892 (patch)
treed44c33689565658acb1a0307872d6c0acfca49f3 /services/issue
parentMerge pull request 'Fix `/api/v1/{owner}/{repo}/issue_templates`' (#2292) fro... (diff)
downloadforgejo-271db6ff226f0747ce45e16e296b41ec972dc892.tar.xz
forgejo-271db6ff226f0747ce45e16e296b41ec972dc892.zip
[FEAT] support `.forgejo` dir for issue and PR templates
Diffstat (limited to 'services/issue')
-rw-r--r--services/issue/template.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/issue/template.go b/services/issue/template.go
index b6ae077987..47633e5d85 100644
--- a/services/issue/template.go
+++ b/services/issue/template.go
@@ -23,6 +23,8 @@ import (
var templateDirCandidates = []string{
"ISSUE_TEMPLATE",
"issue_template",
+ ".forgejo/ISSUE_TEMPLATE",
+ ".forgejo/issue_template",
".gitea/ISSUE_TEMPLATE",
".gitea/issue_template",
".github/ISSUE_TEMPLATE",
@@ -32,6 +34,8 @@ var templateDirCandidates = []string{
}
var templateConfigCandidates = []string{
+ ".forgejo/ISSUE_TEMPLATE/config",
+ ".forgejo/issue_template/config",
".gitea/ISSUE_TEMPLATE/config",
".gitea/issue_template/config",
".github/ISSUE_TEMPLATE/config",