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