mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-14 10:34:05 +00:00
[BRANDING] lookup .forgejo/workflows before .gitea/workflows
(cherry picked from commitffe51fd72f
) (cherry picked from commita2b483b67d
) (cherry picked from commit2b7d0bbde2
) (cherry picked from commit4a6141187d
) (cherry picked from commita3ccc97ef8
) (cherry picked from commit6259e5b9a2
) (cherry picked from commit8a293ff204
) (cherry picked from commit83c9145c08
)
This commit is contained in:
parent
d0b3dfd423
commit
6b69212404
|
@ -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