feat(mcp): add lint-pr-text CLI for pre-push PR text checks#2623
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-02 23:35:52 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 6 non-blocking
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 #2623 +/- ##
=======================================
Coverage 96.09% 96.09%
=======================================
Files 237 237
Lines 26444 26448 +4
Branches 9587 9589 +2
=======================================
+ Hits 25412 25416 +4
Misses 425 425
Partials 607 607 🚀 New features to boost your workflow:
|
Summary
The
gittensory_lint_pr_textMCP tool andPOST /v1/lint/pr-textAPI already lint commit messages and PR bodies against the Gittensory traceability and Conventional Commit rubric, but contributors had no shell equivalent for CI hooks or pre-push checks without spinning up an MCP session.This change adds
gittensory-mcp lint-pr-text, a thin CLI wrapper that posts to/v1/lint/pr-textwith--commit(repeatable),--body,--body-file, and--linked-issue, mirroring the MCP tool input shape. Plain output prints the verdict, score, summary, and fixes;--jsonreturns the full report.No linked issue — discovered by comparing existing MCP tools (
gittensory_lint_pr_text,gittensory_check_slop_risk) against the CLI surface (preflight,analyze-branch) where lint had no shell mirror.Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Validation
git diff --checknpm run actionlintnpm run typechecknpm run test:coveragelocally;codecov/patchrequires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.npm run test:workersnpm run build:mcpnpm run test:mcp-packnpm run ui:openapi:checknpm run ui:lintnpm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderateIf any required check was skipped, explain why:
npm run test:ci(includes all checks above).Safety
UI Evidencesection below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.UI Evidence
N/A — MCP CLI only; no visible UI changes.
Notes
init-client/windsurf (feat(mcp): add windsurf host to init-client config #2608), miner packages, review-enrichment, selfhost, and gate migrations.gittensory-mcp lint-pr-text --commit "feat(mcp): add doctor grouping" --body-file .github/pull_request_template.md --linked-issue 160 --json