mirror of
https://github.com/millionco/react-doctor.git
synced 2026-09-14 20:00:24 +08:00
7db0805e98
The composite action ran the score step as `react-doctor <dir> --score` without forwarding any `--fail-on` value, so the CLI's default (`--fail-on error`) applied. Combined with `set -e -o pipefail`, that killed the job whenever the score landed in the "Needs work" band even though the diff scan had already satisfied the user's configured `fail-on` and the score itself is the only signal the step exists for. Two complementary fixes: 1. action.yml: the score step now always runs with `--fail-on none` and tolerates the pipeline failing (`|| true`). The score's value is the only signal — its exit code never gates the workflow. 2. CLI: `--score` is an output-collection mode. Skip the `shouldFailForDiagnostics` exit-code branch when `--score` is set, matching the documented contract that `--score` outputs only the score. Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Aiden Bai <aidenybai@users.noreply.github.com>