-
-
Notifications
You must be signed in to change notification settings - Fork 89
REST + CLI mirror for loopover_refresh_repo_docs #6743
Copy link
Copy link
Closed
Labels
gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is neededExtra attention is needed
Description
Metadata
Metadata
Assignees
Labels
gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.Gittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is neededExtra attention is needed
Context
The MCP tool
loopover_refresh_repo_docs(src/mcp/server.ts:2535, viarefreshRepoDocsatsrc/mcp/server.ts:4213-4227,requireRepoManageAccess-gated) callsperformRepoDocRefresh(src/github/repo-doc-refresh-runner.ts), opening or finding the already-open repo-doc PR. No REST route exists for this (confirmed via grep forperformRepoDocRefresh— only the MCP tool calls it), and no CLI mirror exists.Requirements
POST /v1/repos/:owner/:repo/repo-docs/refreshinsrc/api/routes.ts, maintainer-write-gated (requireRepoWriteAccess), calling the sameperformRepoDocRefresh.maintain refresh-docs --repo owner/repoCLI subcommand.Deliverables
POST /v1/repos/:owner/:repo/repo-docs/refreshroutemaintain refresh-docsCLI subcommandTest Coverage Requirements
99%+ Codecov patch coverage on every changed line and branch in the new route/tool/CLI code, plus a test asserting output parity between the mirrored surfaces for identical input.
Expected Outcome
A maintainer can trigger a repo-doc refresh over REST/CLI, not just via the MCP tool.
Links & Resources
Precedent:
app.post("/v1/repos/:owner/:repo/agent/pending-actions/:id/:decision", ...)atsrc/api/routes.ts:2593as the maintainer-write REST precedent, andmaintain approve/reject(loopover-mcp.js:2753-2760) as the CLI-write precedent.