yoavniran/Overweight-Guard

Extensible bundle size guard with pluggable testers.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
configPath to an overweight configuration file.no
filesJSON string that overrides the configuration files array.no
working-directoryDirectory to run the checks from.no
github-tokenToken used to comment on pull requests.no
comment-on-prComment on pull requests when checks fail.notrue
comment-on-pr-alwaysAlso comment on the first PR run even when all checks pass.nofalse
comment-on-pr-each-runComment on every PR run regardless of the result.nofalse
baseline-report-pathOptional path to a JSON file with baseline results. Defaults to `report-file` when omitted and `update-baseline` is true.no
update-baselineWhen true, commit the updated baseline to a new branch and open a pull request.nofalse
baseline-protected-branchesComma-separated list of branch names or glob patterns where baseline updates are forbidden (default: main,master).nomain,master
baseline-thresholdSize tolerance below which a file is not treated as changed. A bare fraction between 0 and 1 (e.g. 0.01) is a percentage of the previous size; anything else is absolute bytes (e.g. 50, "50 B", "1 kB"). Set 0 to disable.no0.01
update-pr-titleTitle of the pull request created when update-baseline is true.nochore: update baseline report
update-pr-bodyBody of the pull request created when update-baseline is true.noAutomatic pull request updating the overweight baseline report.
update-branch-prefixPrefix for the temporary branch that carries the baseline update.nooverweight/baseline
report-fileFile path where the json report will be written.nooverweight-report.json
namedescription
report-jsonSerialized JSON report describing every bundle check.
report-tableHTML table that can be posted as a PR comment.
has-failurestrue if any check failed.
baseline-updatedtrue if the baseline report file was updated.
report-fileAbsolute path to the generated json report.
baseline-update-pr-urlURL of the pull request created for the baseline update.
baseline-update-pr-numberNumber of the pull request created for the baseline update.