You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ralph-triage.js hardcodes api.github.com, causing 401 on GitHub Enterprise #1142
Squad Heartbeat (Ralph) / heartbeat fails on GitHub Enterprise because the triage script sends API requests to api.github.com instead of the GHE API host.
Thanks for the detailed repro and proposed fix — I'll take this one.
Plan: githubRequestJson() in .squad-templates/ralph-triage.js currently hardcodes hostname: 'api.github.com' in the https.request() options. I'll add a small resolveGithubApiBase() helper that picks the API base in the order you outlined — GITHUB_API_URL first, then GITHUB_SERVER_URL + /api/v3, then falling back to https://api.github.com — and build the request from a URL object instead of a hardcoded hostname/path pair. I'll add a unit test covering all three resolution branches, then run node scripts/sync-templates.mjs --sync so the fix propagates to the three mirrored copies (templates/, packages/squad-cli/templates/, packages/squad-sdk/templates/) that test/template-sync.test.ts checks for byte-for-byte parity.
Activity
omercangumus commentedon Jul 2, 2026
Thanks for the detailed repro and proposed fix — I'll take this one.
Plan:
githubRequestJson()in.squad-templates/ralph-triage.jscurrently hardcodeshostname: 'api.github.com'in thehttps.request()options. I'll add a smallresolveGithubApiBase()helper that picks the API base in the order you outlined —GITHUB_API_URLfirst, thenGITHUB_SERVER_URL+/api/v3, then falling back tohttps://api.github.com— and build the request from aURLobject instead of a hardcoded hostname/path pair. I'll add a unit test covering all three resolution branches, then runnode scripts/sync-templates.mjs --syncso the fix propagates to the three mirrored copies (templates/,packages/squad-cli/templates/,packages/squad-sdk/templates/) thattest/template-sync.test.tschecks for byte-for-byte parity.fix(templates): resolve GitHub API host from env in ralph-triage.js
fix(templates): resolve GitHub API host from env in ralph-triage.js (#…
chore(release): prepare v0.12.0
chore(release): prepare v0.12.0 (#1691)
chore: promote dev -> main (v0.12.0) (#1698)