[BRANDING] lookup .forgejo/workflows before .gitea/workflows
(cherry picked from commitffe51fd72f
) (cherry picked from commita2b483b67d
) (cherry picked from commit2b7d0bbde2
) (cherry picked from commit3027fddbff
) (cherry picked from commit023f7cc3b2
) (cherry picked from commit95c3a3aa70
) (cherry picked from commit1cc0ef5cc5
) (cherry picked from commit467d082568
) (cherry picked from commit5d8f40e865
) (cherry picked from commit1d268662cc
) (cherry picked from commit326a0fbcc1
)
This commit is contained in:
parent
e06bd44495
commit
09368a4993
1 changed files with 4 additions and 1 deletions
|
@ -38,7 +38,10 @@ func IsWorkflow(path string) bool {
|
|||
}
|
||||
|
||||
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