forked from NYANDEV/forgejo
[BRANDING] lookup .forgejo/workflows before .gitea/workflows
(cherry picked from commit ffe51fd72f384c4644b9329aa201ea80cd7ad7ad) (cherry picked from commit a2b483b67d4f3c1bb214312a35abc6d81a063cde) (cherry picked from commit 2b7d0bbde22830d4d631421613256001b6daecfb) (cherry picked from commit4a6141187d
) (cherry picked from commit a3ccc97ef887af6aa6c35e0040983f7757523198) (cherry picked from commit6259e5b9a2
) (cherry picked from commit8a293ff204
) (cherry picked from commit83c9145c08
) (cherry picked from commit6b69212404
)
This commit is contained in:
parent
412a9dbc15
commit
410bbfed7f
1 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,10 @@ func init() {
|
|||
}
|
||||
|
||||
func ListWorkflows(commit *git.Commit) (git.Entries, error) {
|
||||
tree, err := commit.SubTree(".gitea/workflows")
|
||||
tree, err := commit.SubTree(".forgejo/workflows")
|
||||
if _, ok := err.(git.ErrNotExist); ok {
|
||||
tree, err = commit.SubTree(".gitea/workflows")
|
||||
}
|
||||
if _, ok := err.(git.ErrNotExist); ok {
|
||||
tree, err = commit.SubTree(".github/workflows")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue