We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 790caec commit 5241e9aCopy full SHA for 5241e9a
modules/actions/workflows.go
@@ -44,12 +44,12 @@ func IsWorkflow(path string) bool {
44
return strings.HasPrefix(path, ".gitea/workflows") || strings.HasPrefix(path, ".github/workflows")
45
}
46
47
-func ListWorkflows(tree *git.Tree) (string, git.Entries, error) {
+func ListWorkflows(rootTree *git.Tree) (string, git.Entries, error) {
48
rpath := ".gitea/workflows"
49
- tree, err := tree.SubTree(rpath)
+ tree, err := rootTree.SubTree(rpath)
50
if _, ok := err.(git.ErrNotExist); ok {
51
rpath = ".github/workflows"
52
- tree, err = tree.SubTree(rpath)
+ tree, err = rootTree.SubTree(rpath)
53
54
55
return "", nil, nil
0 commit comments