fix(selfhost): canonicalize repo-doc refresh repos - #3605
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3605 +/- ##
=======================================
Coverage 93.11% 93.11%
=======================================
Files 305 305
Lines 31532 31534 +2
Branches 11509 11510 +1
=======================================
+ Hits 29361 29363 +2
Misses 1517 1517
Partials 654 654
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 19:39:39 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 5 non-blocking
Concerns raised — review before merging
Review context
Contributor next steps
Signal definitions
🟩 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.
|
Motivation
Description
getRepositoryand derive acanonicalRepoFullNamebefore callinggetRepositorySettings,openRepoDocPullRequest, or recording attempt snapshots inperformRepoDocRefresh(src/github/repo-doc-refresh-runner.ts).getRepositoryalongside existing DB helpers and use the canonical name for settings lookup, PR-opening, and attempt recording to avoid casing mismatches.test/unit/repo-doc-refresh-runner.test.tsthat cover the uninstalled-repo fallback and a mixed-case caller path that must respect the storedagentPausedsetting.Testing
npm run typecheckwhich succeeded with no TypeScript errors.npx vitest run test/unit/repo-doc-refresh-runner.test.tsand all tests in that file passed.npm run test:ci, but the run was interrupted/blocked by unrelated long-running failures/timeouts in existing test suites (test/unit/queue.test.tsandtest/unit/backfill.test.ts) in the local environment, so the full gate was not completed here.Codex Task