From e467060056143b21e8e6bb77d4af31f5d2f0ed92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Sibiril?= <81782+aureliensibiril@users.noreply.github.com> Date: Thu, 28 May 2026 22:22:46 +0200 Subject: [PATCH] Allow empty team for the Heroku connector driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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> --- pkg/connector/provider/heroku.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkg/connector/provider/heroku.go b/pkg/connector/provider/heroku.go index 9f363bc06..88e0d2e1d 100644 --- a/pkg/connector/provider/heroku.go +++ b/pkg/connector/provider/heroku.go @@ -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 {