mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-01 00:12:28 +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
|
||||
}
|
||||
|
||||
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 {
|
||||
cfgUnit := repo.MustGetUnit(ctx, unit.TypeActions)
|
||||
cfg := cfgUnit.ActionsConfig()
|
||||
|
Loading…
x
Reference in New Issue
Block a user