meru143/couplingguard
Detect file coupling risk in PRs using git co-change history. Zero-config, no external services.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GitHub token used to read PR info and post the coupling comment. | no | ${{ github.token }} |
| gitlab_token | GitLab personal access token (only used when running on GitLab CI). | no | "" |
| lookback_days | Days of git history to analyze. | no | 90 |
| min_occurrences | Minimum co-change count to include a pair. | no | 3 |
| max_pairs | Maximum pairs to show in the PR comment. | no | 10 |
| low_threshold | Score boundary for low risk (🟢). | no | 0.3 |
| high_threshold | Score boundary for high risk (���). | no | 0.7 |
| fail_threshold | Exit 1 if any pair crosses this level: 'low', 'medium', or 'high'. Empty disables CI failure. | no | "" |
| exclude | Newline-separated glob patterns to exclude from analysis. | no | "" |
| publish_dashboard | Set true to write coupling-history.json, coupling-dashboard.html, and coupling-score.json. | no | false |
| dry_run | Set true to print the comment to stdout instead of posting it. | no | false |
Outputs
no outputs