Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

11 Commits

Repository files navigation

GitHub Action: Run erb_lint with reviewdog 🐶

This Github action runs erb_lint with reviewdog.

Examples

name: reviewdogon: [pull_request]jobs:
linters:
name: runner / lintersruns-on: ubuntu-lateststeps:
- name: Check out codeuses: actions/checkout@v3
- name: Set up Rubyuses: ruby/setup-ruby@v1with:
ruby-version: 3.2.2
- name: erb_lintuses: WizardComputer/action-erblint@v1.0.0with:
reporter: github-pr-check # Default is github-pr-review

With github-pr-review

By default, with reporter: github-pr-review a comment is added to the Pull Request Conversation:

Example comment made by the action, with github-pr-review

With github-pr-check

With reporter: github-pr-check an annotation is added to the line:

Example comment made by the action, with github-pr-check

Inputs

github_token

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

erblint_version

Optional. Set erb_lint version.

  • empty or omit: install latest version
  • gemfile: install version from Gemfile (Gemfile.lock should be presented, otherwise it will fallback to latest bundler version)
  • version (e.g. 0.4.0): install said version

level

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

reporter

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

filter_mode

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

use_bundler

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

About

Rub erb_lint with reviewdog 🐶

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages