Skip to content

introduce -fail-level flag and deprecate -fail-on-error #1854

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Aug 1, 2024
Merged

Conversation

haya14busa
Copy link
Member

@haya14busa haya14busa commented Jul 26, 2024

Now reviewdog can control exit code based on issue severity.
For example, if -fail-level=warning, then reviewdog will exit with 0
for issues with info severity, while it will exit with 1 if it finds issues with
error, warning, or unknown severity.

This change also fixes the feature parity with github-[pr-]check reporter.
Previously, only this reporter didn't fail on warning or info level issues (#1846),
and this behavior was removed during refactoring (#1846).
Now users can use -reporter=github-check -fail-level=error to restore
the previous behavior.

  • Updated Unreleased section in CHANGELOG or it's not notable changes.

Now reviewdog can control exit code based on issue severity.
For example, if `-fail-level=warning`, then reviewdog will exit with 0
for issues with info severity, while it will exit with 1 if it finds issues with
error, warning, or unknown severity.

This change also fixes the feature parity with github-[pr-]check reporter.
Previously, only this reporter didn't fail on warning or info level issues (#1846),
and this behavior was removed during refactoring (#1846).
Now users can use `-reporter=github-check -fail-level=error` to restore
the previous behavior.
@haya14busa haya14busa marked this pull request as ready for review July 26, 2024 12:52
@haya14busa haya14busa merged commit 6720b05 into master Aug 1, 2024
31 checks passed
@haya14busa haya14busa deleted the exit-code branch August 1, 2024 11:19
penelopeysm added a commit to TuringLang/actions that referenced this pull request Mar 18, 2025
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