benny123tw/Run ruff with reviewdog
🐶 Run ruff with reviewdog on pull requests to improve code review experience.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Jan 19, 2025
- License
- None
Pinned Snippet
uses: benny123tw/action-ruff@226d241bdf7205e6e048f1407d21bd69a64b7298 # v1.1.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GITHUB_TOKEN. | yes | ${{ github.token }} |
| level | Report level for reviewdog [info,warning,error] | no | error |
| reporter | Reporter of reviewdog command [github-check,github-pr-review]. Default is github-pr-review. github-pr-review can use Markdown and add a link to rule page in reviewdog reports. | no | github-pr-review |
| filter_mode | Filtering mode for the reviewdog command [added,diff_context,file,nofilter]. Default is added. | no | added |
| fail_level | If set to `none`, always use exit code 0 for reviewdog. Otherwise, exit code 1 for reviewdog if it finds at least 1 issue with severity greater than or equal to the given level. Possible values: [none,any,info,warning,error] Default is `none`. | — | none |
| fail_on_error | Deprecated, use `fail_level` instead. Exit code for reviewdog when errors are found [true,false] Default is `false`. | no | false |
| reviewdog_flags | Additional reviewdog flags | no | "" |
| ruff_flags | flags and args of ruff command. Default: '.' | no | "" |
| workdir | The directory from which to look for and run eslint. Default '.' | no | . |
| tool_name | Tool name to use for reviewdog reporter | no | eslint |
| changed_files | Whether to only run Ruff on changed files. Defaults to `true`. | no | true |
Outputs
no outputs