mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 06:39:40 +01:00
[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
)
This commit is contained in:
parent
6349081044
commit
326a0fbcc1
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