No description
Find a file
dependabot[bot] 1b10e7c6a6
Bump eslint and eslint-plugin-github
Bumps [eslint](https://github.com/eslint/eslint) and [eslint-plugin-github](https://github.com/github/eslint-plugin-github). These dependencies needed to be updated together.

Updates `eslint` from 7.32.0 to 8.35.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.32.0...v8.35.0)

Updates `eslint-plugin-github` from 4.3.2 to 4.6.1
- [Release notes](https://github.com/github/eslint-plugin-github/releases)
- [Commits](https://github.com/github/eslint-plugin-github/compare/v4.3.2...v4.6.1)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
- dependency-name: eslint-plugin-github
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-07 13:56:04 +00:00
.github Use Node.js 16 2023-03-06 22:38:39 +09:00
__tests__ Initial implementation 2022-11-08 14:01:42 +09:00
dist Suppress Clippy logs 2022-12-05 23:01:09 +09:00
src Suppress Clippy logs 2022-12-05 23:01:09 +09:00
.eslintignore Use https://github.com/actions/typescript-action 2022-11-01 14:58:59 +09:00
.eslintrc.json Use https://github.com/actions/typescript-action 2022-11-01 14:58:59 +09:00
.gitattributes Use https://github.com/actions/typescript-action 2022-11-01 14:58:59 +09:00
.gitignore Use https://github.com/actions/typescript-action 2022-11-01 14:58:59 +09:00
.prettierignore Use https://github.com/actions/typescript-action 2022-11-01 14:58:59 +09:00
.prettierrc.json Use https://github.com/actions/typescript-action 2022-11-01 14:58:59 +09:00
action.yml Make GitHub token optional 2023-01-28 00:54:01 +09:00
jest.config.js Use https://github.com/actions/typescript-action 2022-11-01 14:58:59 +09:00
LICENSE Use https://github.com/actions/typescript-action 2022-11-01 14:58:59 +09:00
package-lock.json Bump eslint and eslint-plugin-github 2023-03-07 13:56:04 +00:00
package.json Bump eslint and eslint-plugin-github 2023-03-07 13:56:04 +00:00
README.md Make GitHub token optional 2023-01-28 00:54:01 +09:00
tsconfig.json Use https://github.com/actions/typescript-action 2022-11-01 14:58:59 +09:00

GitHub Action: Run Clippy with reviewdog

This action runs Clippy with reviewdog on pull requests to improve code review experience.

スクリーンショット 2022-11-08 8 57 47

Example usage

name: clippy-action
on: [pull_request]
jobs:
  clippy:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - uses: dtolnay/rust-toolchain@stable
      with:
        components: clippy
    - uses: giraffate/clippy-action@v1
      with:
        reporter: 'github-pr-review'
        github_token: ${{ secrets.GITHUB_TOKEN }}

Inputs

github_token

Optional. Default is ${{ github.token }}.

clippy_flags

Optional. clippy flags. (cargo clippy --color never -q --message-format json <clippy_flags>) For example, clippy_flags: -- -Dwarnings.

tool_name

Optional. Tool name to use for reviewdog reporter. Useful when running multiple actions with different config.

level

Optional. Report level for reviewdog [info,warning,error]. It's same as -level flag of reviewdog.

workdir

Optional. Working directory relative to the root directory.

reporter

Optional. Reporter of reviewdog command [github-pr-check,github-pr-review]. It's same as -reporter flag of reviewdog.

github-pr-review

cargo clippy cargo clippy -- -Dwarnings
github-pr-review_warning github-pr-review_error

github-pr-check

cargo clippy cargo clippy -- -Dwarnings
github-pr-check_warning github-pr-check_error

filter_mode

Optional. Filtering mode for the reviewdog command [added,diff_context,file,nofilter]. Default is added.

fail_on_error

Optional. Exit code for reviewdog when errors are found [true, false] Default is false.

reviewdog_flags

Optional. Additional reviewdog flags

reviewdog_version

Optional. Install a specific version of reviewdog. By default, the latest version of reviewdog is installed.