refactor(rebrand): consolidate and rename hardcoded User-Agent literals - #5445
Conversation
Introduce PRODUCT_USER_AGENT in src/github/client.ts as the single shared constant for the 16 sites that had independently drifted their own copy of the same outbound User-Agent literal, fixing the maintainability gap the existing githubHeaders() doc comment already claimed was solved. Rename the remaining distinct-purpose gittensory-* User-Agent literals (miner, api, selfhost, content-lane, orb, production-smoke, mcp-release-watch) to their loopover-* equivalents, leaving unrelated look-alike identifiers (cache-replay header, config directory paths, CLI bin-command references, package/config filenames) untouched since each is tracked by its own separate rebrand issue. Closes #5335
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 8ebb953 | Commit Preview URL Branch Preview URL |
Jul 12 2026, 07:48 PM |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5445 +/- ##
=======================================
Coverage 94.46% 94.46%
=======================================
Files 554 554
Lines 44426 44427 +1
Branches 14663 14663
=======================================
+ Hits 41967 41968 +1
Misses 1784 1784
Partials 675 675
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-12 19:54:54 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 8 non-blocking
Linked issue satisfactionPartially addressed Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/gittensory-commands 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Summary
PRODUCT_USER_AGENTinsrc/github/client.tsas the single shared constant for the 16 sites acrosssrc/that had each independently drifted their own copy of the same outbound User-Agent literal (gittensory/0.1), fixing the maintainability gapgithubHeaders()'s own doc comment already claimed was solved.loopover-*equivalents: miner (packages/gittensory-miner/lib/*.js, 7 sites), api, selfhost (x2), content-lane, orb (brand prefix only — the-orbcodename suffix is deliberately untouched pending the still-open ORB-naming question), production-smoke, mcp-release-watch.x-gittensory-cache/x-gittensory-request-idheader names (different header, different concern),.gittensory-ams.yml/.gittensory.ymlconfig filenames, config-directory paths, CLI bin-command references, and anypackages/gittensory-minernpm package path — all tracked by their own separate rebrand issues.Closes #5335
Test plan
npm run typecheckcleannpm run test:cigreen (772/774 files passed, 2 pre-existing skips; one single-flight coalescing test flaked once under full parallel load, confirmed passing standalone and on a clean re-run — unrelated to this change)npm audit --audit-level=moderate— 0 vulnerabilitiesorigin/main, no conflictsenv.*changes)