MCPcopy Create free account
hub / github.com/Scalingo/cli / checkIfIntegrationAlreadyExist

Function checkIfIntegrationAlreadyExist

scmintegrations/utils.go:16–19  ·  view source on GitHub ↗
(ctx context.Context, c *scalingo.Client, id string)

Source from the content-addressed store, hash-verified

14var ErrNotFound = stderrors.New("SCM integration not found")
15
16func checkIfIntegrationAlreadyExist(ctx context.Context, c *scalingo.Client, id string) bool {
17 integrations, _ := c.SCMIntegrationsShow(ctx, id)
18 return integrations != nil
19}
20
21func GetTypeFromURL(ctx context.Context, integrationURL string) (scalingo.SCMType, error) {
22 c, err := config.ScalingoClient(ctx)

Callers 1

CreateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected