docs(openapi): document validate-linked-issue + check-before-start routes (#9304) - #9449
Conversation
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-27 19:19:24 UTC
Review summary Nits — 6 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver 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://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. Scroll preview
A short scroll-through clip (desktop) — click either thumbnail to open the full animation. Evidence for scroll-linked behavior a single screenshot can't show. 🟩 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 LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
…utes Two live POST /v1/repos/:owner/:repo pre-work-check routes (validate-linked-issue, check-before-start) each already back an MCP tool with its own Zod shapes but were absent from the OpenAPI spec. Add ValidateLinkedIssue/CheckBeforeStart request+response schemas in schemas.ts (field-level parity with the MCP inputSchema/outputSchema), register both as components and registerPath entries in spec.ts (mirroring the gate-config/effective + evaluate-escalation patterns), and regenerate the committed apps/loopover-ui/public/openapi.json.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9449 +/- ##
==========================================
+ Coverage 75.51% 75.69% +0.18%
==========================================
Files 275 277 +2
Lines 58032 58472 +440
Branches 6209 6216 +7
==========================================
+ Hits 43820 44259 +439
Misses 13942 13942
- Partials 270 271 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|


Problem
Closes #9304.
Two live
POST /v1/repos/:owner/:repo/*pre-work-check routes each already have an MCP tool with its own Zod shapes, but neither appears insrc/openapi/spec.ts:POST …/validate-linked-issue→loopover_validate_linked_issuePOST …/check-before-start→loopover_check_before_startFix
Mirrors the #6611
gate-config/effectivepattern (and theevaluate-escalationPOST mirror):src/openapi/schemas.ts: addedValidateLinkedIssue/CheckBeforeStartrequest+response schemas — field-level parity with the MCP tools'inputSchema/outputSchema.src/openapi/spec.ts:registry.registerall four as components andregisterPathboth routes (params + body + response, 400/401/403).apps/loopover-ui/public/openapi.json;npm run ui:openapi:checkenforces it.test/unit/openapi.test.tspasses; 100% patch coverage on the newschemas.ts/spec.tslines.