fix(mcp): map review preflight status#3972
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 846dc79 | Commit Preview URL Branch Preview URL |
Jul 07 2026, 08:15 AM |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-07 08:18:05 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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3972 +/- ##
=======================================
Coverage 93.68% 93.68%
=======================================
Files 373 373
Lines 34895 34895
Branches 12768 12768
=======================================
Hits 32692 32692
Misses 1584 1584
Partials 619 619 🚀 New features to boost your workflow:
|
Motivation
review-prcomposition layer was incorrectly mapping preflight statuses usingfail/warn, which does not match the actual preflight contract ofready|needs_work|hold, causing blocking/warning states to be reported as passing.needs_workorholdpreflight results from producing an overallpasswhen other checks (e.g. slop-risk, pr-text-lint) pass.Description
packages/gittensory-mcp/bin/gittensory-mcp.jswith a dedicatedpreflightSectionStatushelper that mapshold→fail,needs_work→warn, and otherwisepassand wire it into thesectionsarray used byreviewLocalPr.test/unit/mcp-cli-review-pr.test.tsthat assertneeds_workproduces awarnsection andholdproduces afailsection so the composedoverallStatusis correct.slop_risk,pr_text_lint) unchanged and preserve the per-check degradation behavior when remote endpoints fail.Testing
npx vitest run test/unit/mcp-cli-review-pr.test.tsand all tests in that file passed (10 tests) indicating the new mappings and regressions are covered and green.npm run build:mcpandnpm run test:mcp-packto validate the MCP bundle and packaging, both commands succeeded.git diff --checkto ensure no whitespace/conflict markers and it succeeded.Codex Task