diff options
author | Caesar Schinas <caesar@caesarschinas.com> | 2023-08-25 22:49:17 +0200 |
---|---|---|
committer | Gergely Nagy <forgejo@gergo.csillger.hu> | 2024-02-06 10:22:32 +0100 |
commit | 271db6ff226f0747ce45e16e296b41ec972dc892 (patch) | |
tree | d44c33689565658acb1a0307872d6c0acfca49f3 /services/issue | |
parent | Merge pull request 'Fix `/api/v1/{owner}/{repo}/issue_templates`' (#2292) fro... (diff) | |
download | forgejo-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.go | 4 |
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", |