Storage: remove git backing for storage (#79181)

This commit is contained in:
Ryan McKinley
2023-12-06 14:04:13 -08:00
committed by GitHub
parent 9849c954a3
commit deb8faf1e3
6 changed files with 4 additions and 634 deletions

View File

@@ -598,21 +598,7 @@ func (s *standardStorageService) getWorkflowOptions(ctx context.Context, user *u
}
meta := root.Meta()
if meta.Config.Type == rootStorageTypeGit && meta.Config.Git != nil {
cfg := meta.Config.Git
options.Workflows = append(options.Workflows, workflowInfo{
Type: WriteValueWorkflow_PR,
Label: "Create pull request",
Description: "Create a new upstream pull request",
})
if !cfg.RequirePullRequest {
options.Workflows = append(options.Workflows, workflowInfo{
Type: WriteValueWorkflow_Push,
Label: "Push to " + cfg.Branch,
Description: "Push commit to upstrem repository",
})
}
} else if meta.ReadOnly {
if meta.ReadOnly {
// nothing?
} else {
options.Workflows = append(options.Workflows, workflowInfo{