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

Action does not respect the reviewdog error level #31

Open
justinchuby opened this issue Jun 1, 2022 · 3 comments
Open

Action does not respect the reviewdog error level #31

justinchuby opened this issue Jun 1, 2022 · 3 comments

Comments

@justinchuby
Copy link

The action produces error comments even when level: warning is set:

- name: pyright
  uses: jordemort/action-pyright@v1
  with:
    github_token: ${{ secrets.github_token }}
    reporter: github-pr-check
    level: warning
    filter_mode: diff_context
    lib: true

It would be great if the highest error level is reduced to the level specified in the action config.

@jordemort
Copy link
Owner

I think the level of the comments is based on the severity emitted by pyright, whereas the -level argument to reviewdog determines the overall status of the run. Is the job you're calling from the action returning an error status, or is it just the comments?

@jordemort
Copy link
Owner

Notes for when I loop back to fix this:

@justinchuby
Copy link
Author

justinchuby commented Jun 1, 2022

I think the level of the comments is based on the severity emitted by pyright, whereas the -level argument to reviewdog determines the overall status of the run. Is the job you're calling from the action returning an error status, or is it just the comments?

Both the job and the returned comments errored. It also for some reason stopped the job even though fail_on_error was not set

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

No branches or pull requests

2 participants