fix patch bridge feat/phase-2g-bundle
AI Agent git-import/068377df · 129 days ago · Mar 19, 2026 · Diff

fix(bridge): GitHub REST User-Agent + documented ref URLs for backup

GitHub returns 403 without a valid User-Agent; some Netlify runtimes omit it, so GET branch ref failed (not 404) and the UI showed 'Could not get branch'.

- Set User-Agent on all GitHub API calls in vault sync. - GET ref via /git/ref/{encodeURIComponent('heads/'+branch)}; PATCH ref via /git/refs/{same encoding}; trim default_branch from repo API. - Clear 401/403 errors suggesting Connect GitHub again; log ref failures. - Forensic doc: symptom row for UA / ref path.

Note: knowtation-gateway netlify.toml sends /* to gateway only; bridge logs live on the BRIDGE_URL site (e.g. knowtation-bridge), not gateway's bridge fn.

sha256:7689f8868dd9e4340034ff4de5ecb918068e5582f2a7c320a0d62d048a1e03b2 sha
sha256:2539063077e408ee4ff0370d97992cc30406237e929b1620eb28234d8e399a05 snapshot
← Older Oldest on feat/phase-2g-bundle
All commits
Newer → Latest on feat/phase-2g-bundle

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:7689f8868dd9e4340034ff4de5ecb918068e5582f2a7c320a0d62d048a1e03b2 --body "your comment"