mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Storage: remove git backing for storage (#79181)
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user