mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-18 15:21:04 +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
) (cherry picked from commit6b69212404
)
This commit is contained in:
parent
412a9dbc15
commit
410bbfed7f
1 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,10 @@ func init() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func ListWorkflows(commit *git.Commit) (git.Entries, error) {
|
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 {
|
if _, ok := err.(git.ErrNotExist); ok {
|
||||||
tree, err = commit.SubTree(".github/workflows")
|
tree, err = commit.SubTree(".github/workflows")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue