nrutman/Lines Changed Summary
Comment on PRs with a lines changed summary, with configurable file groups
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | GitHub token for API access | yes | ${{ github.token }} |
| file-groups | YAML configuration for file groups. Each group has a label, patterns (glob), count (boolean), and ignore-whitespace (boolean). Groups are processed in order - first match wins. Example: - label: "Source" patterns: - "src/**/*.ts" count: true ignore-whitespace: true - label: "Generated" patterns: - "**/generated/**" - "**/*.generated.ts" count: false - label: "Tests" patterns: - "**/*.test.ts" count: true Note: ignore-whitespace requires actions/checkout to run before this action. | no | "" |
| default-group-label | Label for files not matching any group pattern | no | Changed |
| ignore-whitespace | Exclude whitespace-only changes from all groups. Individual groups can override this with their own ignore-whitespace setting. Requires actions/checkout. | no | false |
| comment-header | Optional text to display above the summary (leave empty for default) | no | "" |
Outputs
| name | description |
|---|---|
| added-lines | Number of lines added (from groups with count: true) |
| removed-lines | Number of lines removed (from groups with count: true) |
| uncounted-added-lines | Number of lines added (from groups with count: false) |
| uncounted-removed-lines | Number of lines removed (from groups with count: false) |
| total-files | Total number of files changed |