[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
)
This commit is contained in:
parent
3e40088197
commit
5d8f40e865
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