๐ Action: PR Churn Analyzer
Surgical detection of Technical Debt by comparing Logic vs Test changes.
[!IMPORTANT]
High-velocity engineering teams can accrue technical debt when core logic is modified without reciprocal test coverage. The PR Churn Analyzer monitors this ratio and automatically flags Pull Requests that introduce significant logic changes with insufficient testing.
๐ Key Impact
- ๐ Debt Visualization: Mathematically detects if testing parity is lagging behind logic changes.
- ๐ฆ Quality Gates: Safeguards against "test-less" feature growth in critical modules.
- ๐ง Automated Review: Highlights risky PRs for senior architectural intervention.
โ๏ธ Configuration
| Input | Required | Default | Description |
|---|---|---|---|
github-token |
Yes | - | Your GITHUB_TOKEN for API authentication. |
logic-path |
No | features/steps/ |
Path pattern identifying core application logic. |
test-path |
No | .feature |
Path pattern identifying test files. |
debt-threshold-logic |
No | 50 |
Logic LOC threshold to trigger check. |
debt-threshold-tests |
No | 5 |
Minimum Test LOC required. |
โก Quick Start
- name: ๐ Analyze Code Churn & Test Debt
uses: carlos-camara/qa-hub-actions/pr-churn-analyzer@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
logic-path: 'src/'
test-path: 'tests/'
[View Full Wiki](https://carlos-camara.github.io/qa-hub-actions/actions/pr-churn-analyzer/)