sv-oss/ESBuild Metafile Analysis
Generates a PR comment based on the metafile data analysis completed
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github-token | The Github token to use | yes | ${{ github.token }} |
| generate-metafiles-command | The command to execute within the repo to generate the metafiles in the directory | yes | npm run synth |
| metafile-directory | The directory in the file-system where to source all metafiles | yes | — |
| metafile-glob | A glob to filter out and include only specific metafiles | no | **/*.json |
| comment-header | Any details to put in the header of the comment before rendering the table of files | — | — |
| comment-footer | Any details to put at the end of the comment after rendering the table of files | — | — |
| comment-threshold-critical | The file size (including unit) to start marking files as a critical status | — | 5mb |
| comment-threshold-high | The file size (including unit) to start marking files as a high status | — | 1mb |
| comment-threshold-medium | The file size (including unit) to start marking files as a medium status | — | 500kb |
| comment-threshold-low | The file size (including unit) to start marking files as a low status | — | 300kb |
| comment-large-node-modules-threshold | The threshold to start adding the specific node_modules in the list of large node_modules | — | 25kb |
| comment-min-threshold | The minimum severity to render in the comment. By default, all files will be rendered. Accepted values are CRITICAL/HIGH/MEDIUM/LOW/INFO | — | LOW |
| check-mark-failure | Whether to add a check to the Pull Request as a failure when any file meets the threshold limit | — | true |
| check-mark-file-count | The number of files that need to reach the threshold to mark the Pull Request as a failure | — | 1 |
| check-mark-min-threshold | The threshold for considering a file as a failure for whether or not to add a check | — | HIGH |
| display-summary | Whether to render the summary of files | — | true |
| display-key-issues | Whether to render the key issues that were found | — | true |
| display-deltas | Whether to render the file deltas that were detected | — | true |
Outputs
no outputs