mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 07:35:30 +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
)
This commit is contained in:
parent
dbf7401fe8
commit
8a293ff204
|
@ -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