Allow empty team for the Heroku connector driver

The driver now runs in personal mode when no team is configured, so the
team_id-required guard would block solo accounts from ever building a
driver. Drop it and let an empty or personal-account slug flow through.

Signed-off-by: Aurélien Sibiril <81782+aureliensibiril@users.noreply.github.com>
This commit is contained in:
Aurélien Sibiril
2026-05-28 22:22:46 +02:00
parent 3b54a58d14
commit e467060056

View File

@@ -38,10 +38,9 @@ func herokuRegistration() *Registration {
return nil, fmt.Errorf("cannot read heroku connector settings: %w", err)
}
if s.TeamID == "" {
return nil, fmt.Errorf("cannot create heroku driver: team_id is required")
}
// TeamID may be empty or the personal-account slug for a solo
// Heroku account (no Team); the driver runs in personal mode
// (app owner + collaborators) in that case.
return drivers.NewHerokuDriver(c, s.TeamID), nil
},
NewNameResolver: func(ctx context.Context, c *http.Client, conn *coredata.Connector, logger *log.Logger) drivers.NameResolver {