Provisioning: Return available repository types in settings endpoint (#107977)
* Add types for other repositories * Inject the types from extras * Fix go-lint * Fix typecheck * Add it to the tests --------- Co-authored-by: Stephanie Hingtgen <stephanie.hingtgen@grafana.com>
This commit is contained in:
co-authored by
Stephanie Hingtgen
parent
eab8c1db07
commit
b49b103f42
@@ -220,3 +220,9 @@ func (e *WebhookExtra) AsRepository(ctx context.Context, r *provisioning.Reposit
|
||||
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
func (e *WebhookExtra) RepositoryTypes() []provisioning.RepositoryType {
|
||||
return []provisioning.RepositoryType{
|
||||
provisioning.GitHubRepositoryType,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user