Home

Awesome

GitHub Action: Run erb-lint with reviewdog 🐶

This action runs erb-lint with reviewdog on pull requests to improve code review experience.

Inputs

github_token

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

level

Optional. Report level for reviewdog [info, warning, error]. The default is error.

fail_on_error

Optional. Exit code 1 for reviewdog if it finds errors [true, false]. The default is false.

reporter

Optional. Reporter of reviewdog command [github-pr-check, github-check, github-pr-review]. The default is github-pr-review.

filter_mode

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

skip_install

Optional. Do not install Rubocop or its extensions. Default: false.

use_bundler

Optional. Run Rubocop with bundle exec. Default: false.

Example usage

name: reviewdog
on: [pull_request]
jobs:
  erb-lint:
    name: runner / erb-lint
    runs-on: ubuntu-latest
    steps:
      - name: Check out code
        uses: actions/checkout@v1
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: 3.0.0
      - name: erb-lint
        uses: reviewdog/action-erblint@v1

License

MIT