1
0
Fork 0
forked from forgejo/forgejo

[FEAT] support .forgejo dir for issue and PR templates

This commit is contained in:
Caesar Schinas 2023-08-25 21:49:17 +01:00 committed by Gergely Nagy
parent 599264717f
commit 271db6ff22
No known key found for this signature in database
5 changed files with 28 additions and 2 deletions

View file

@ -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",