mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-07 18:23:00 +02:00
remove unused func
This commit is contained in:
parent
4f06b233a1
commit
8b0577e888
@ -390,16 +390,6 @@ func ToActionWorkflowJob(ctx context.Context, repo *repo_model.Repository, task
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func getActionWorkflowPath(commit *git.Commit) string {
|
|
||||||
paths := []string{".gitea/workflows", ".github/workflows"}
|
|
||||||
for _, treePath := range paths {
|
|
||||||
if _, err := commit.SubTree(treePath); err == nil {
|
|
||||||
return treePath
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
func getActionWorkflowEntry(ctx context.Context, repo *repo_model.Repository, commit *git.Commit, folder string, entry *git.TreeEntry) *api.ActionWorkflow {
|
func getActionWorkflowEntry(ctx context.Context, repo *repo_model.Repository, commit *git.Commit, folder string, entry *git.TreeEntry) *api.ActionWorkflow {
|
||||||
cfgUnit := repo.MustGetUnit(ctx, unit.TypeActions)
|
cfgUnit := repo.MustGetUnit(ctx, unit.TypeActions)
|
||||||
cfg := cfgUnit.ActionsConfig()
|
cfg := cfgUnit.ActionsConfig()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user