Skip to content
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

Add fail_level argument and deprecate fail_on_error #23

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bitcoin-tools
Copy link

@bitcoin-tools bitcoin-tools commented Oct 8, 2024

Closes #24.

This PR has two commits to make it easier to review:

  • commit f61f30c adds the fail_level option in the first commit
  • commit 21ae05f maintains backwards-compatibility to avoid breaking any current GitHub Actions users who are calling with fail_on_error=true.

If backwards-compatibility isn't important, we can just go with the first commit and reduce the code complexity.

action.yml Outdated Show resolved Hide resolved
Co-authored-by: Marc Ransome <marc.ransome@fidgetbox.co.uk>
Comment on lines +26 to +28
fail_level:
Exit code for reviewdog when errors are found with severity greater than or equal to the given level [none,any,info,warning,error].
Default is `none`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
fail_level:
Exit code for reviewdog when errors are found with severity greater than or equal to the given level [none,any,info,warning,error].
Default is `none`.
fail_level:
description: |
Exit code for reviewdog when errors are found with severity greater than or equal to the given level [none,any,info,warning,error].

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes YML error.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gaurav-nelson The fail_level input on line 26 needs to be indented two spaces in your suggested change.

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.

The reviewdog argument fail_on_error is deprecated
3 participants