项目文件夹

文件
2026-07-13 12:52:40 +08:00

1.3 KiB

id, title, workspaceRoot, event, filters, debounceSeconds, cooldownSeconds, maxParallel, modelSelection, tags, metadata
id title workspaceRoot event filters debounceSeconds cooldownSeconds maxParallel modelSelection tags metadata
pr-test-coverage Analyze Test Coverage Impact of PR /absolute/path/to/repo github.pull_request.synchronize
repository pullRequest
your-org/your-repo
baseBranch
main
30 120 2
providerId modelId
cline anthropic/claude-opus-4.7
automation
github
testing
owner checkMetrics
qa
lineCoverage
branchCoverage
newFilesCoverage

Analyze test coverage impact when a PR is updated:

  1. Checkout the PR branch

  2. Run test coverage: npm run test:coverage

  3. Compare coverage to main branch:

    • Lines added with coverage
    • Lines added without coverage
    • Files with decreased coverage
    • New files with low coverage
  4. Generate a coverage impact report showing:

    • Coverage change percentage
    • Files with added uncovered code
    • Critical gaps in new functionality
    • Suggestions for missing tests
  5. Post results as PR comment with:

    • Overall coverage impact (↑ or ↓)
    • File-by-file breakdown
    • Specific line ranges needing tests
    • Recommendations for test additions

Color code the feedback:

  • 🟢 Coverage improved
  • 🟡 Coverage maintained
  • 🔴 Coverage decreased
  • New code without tests

Help maintain test quality standards without blocking the PR.