raprogramm/Rust PR Diff Analyzer
Analyze and limit PR size by distinguishing production code from test code using Rust AST analysis
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 22, 2026
- License
- None
Pinned Snippet
uses: raprogramm/rust-prod-diff-checker@887eced80cb9047d3fc202120f7d1cc484c8186b # v1.6.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| max_prod_units | Maximum number of production units allowed | no | 30 |
| max_weighted_score | Maximum weighted score allowed | no | 100 |
| max_prod_lines | Maximum production lines added | no | "" |
| fail_on_exceed | Fail the action if limits are exceeded | no | true |
| output_format | Output format (github, json, human) | no | github |
| config_file | Path to configuration file | no | "" |
| post_comment | Post analysis as PR comment | no | false |
| update_comment | Update existing comment instead of creating new | no | true |
Outputs
| name | description |
|---|---|
| prod_functions_changed | Number of production functions changed |
| prod_structs_changed | Number of production structs changed |
| prod_other_changed | Number of other production units changed |
| test_units_changed | Number of test units changed |
| prod_lines_added | Lines added in production code |
| prod_lines_removed | Lines removed from production code |
| test_lines_added | Lines added in test code |
| test_lines_removed | Lines removed from test code |
| weighted_score | Weighted score of changes |
| exceeds_limit | Whether limits were exceeded |