From 476a3136a9f55e151ae689cd098795ec865e7850 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Wed, 3 Jun 2026 01:23:08 +0000 Subject: fix: clone from local mirror and sync from GitHub push events - ContainerRunner now resolves local project path for non-story (CI) tasks, cloning from the local bare repo instead of the HTTPS GitHub URL to avoid auth failures on the host. - CI failure tasks now use SSH URLs (git@github.com:...) instead of HTTPS to avoid credential prompts even when no local path is found. - GitHub push webhook events now trigger an async git fetch into the local bare repo, keeping the local mirror in sync when work happens directly on GitHub. Co-Authored-By: Claude Sonnet 4.6 --- internal/api/server.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/api/server.go') diff --git a/internal/api/server.go b/internal/api/server.go index 28cfe4a..2dcbf77 100644 --- a/internal/api/server.go +++ b/internal/api/server.go @@ -53,6 +53,7 @@ type Server struct { elaborateLimiter *ipRateLimiter // per-IP rate limiter for elaborate/validate endpoints webhookSecret string // HMAC-SHA256 secret for GitHub webhook validation projects []config.Project // configured projects for webhook routing + githubURLForTest func(fullName string) string // overrides GitHub SSH URL in tests vapidPublicKey string vapidPrivateKey string vapidEmail string -- cgit v1.2.3