Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 10, 2026

The documentation for the Hyvä compatibility checker command stated "Returns exit code 1 if critical issues found, 0 otherwise" but didn't clarify that warnings alone don't trigger a non-zero exit code.

Changes

  • Updated docs/commands.md to explicitly state that warnings without critical issues return exit code 0

The command implementation (lines 214-216 of CompatibilityCheckCommand.php) returns RETURN_FAILURE only when $results['summary']['criticalIssues'] > 0. This distinction matters for CI/CD pipelines that use exit codes to determine build status.

- Returns exit code 1 if critical issues are found, 0 otherwise (even if warnings exist)

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: dermatz <6103201+dermatz@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Hyvä compatibility checker command based on feedback Clarify exit code behavior in Hyvä compatibility checker documentation Jan 10, 2026
Copilot AI requested a review from dermatz January 10, 2026 00:16
@dermatz dermatz marked this pull request as ready for review January 10, 2026 00:19
@dermatz dermatz merged commit 96ceecf into feature-hyva-compat-checker Jan 10, 2026
2 checks passed
@dermatz dermatz deleted the copilot/sub-pr-59-again branch January 10, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants