vitali87/pr-split score
Score a PR's complexity and suggest splits when it's too large
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| max-loc | Maximum target diff lines per sub-PR | — | 400 |
| min-loc | Minimum target diff lines per sub-PR | — | "" |
| partition-strategy | Backend for partitioning (graph or cp_sat) | — | graph |
| priority | Grouping priority (orthogonal or logical) | — | orthogonal |
| threshold-groups | Minimum suggested groups before showing the split plan | — | 2 |
| python-version | Python version to use | — | 3.12 |
| post-comment | Whether to post a PR comment with the results | — | true |
Outputs
| name | description |
|---|---|
| total-loc | Total lines of code in the PR diff |
| total-groups | Number of suggested groups |
| objective | Plan objective score (lower is better) |
| should-split | Whether the PR should be split (true/false) |