Skip to content

asbjornu/action-remark-lint

 
 

Repository files navigation

Reviewdog/action-remark-lint GitHub Action

Test reviewdog depup release GitHub release (latest SemVer) action-bumpr supported

action screenshot action screenshot

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

Quick start

In it's simplest form this action can be used to annotate the changes that are suggested by the remark-lint linter.

name: reviewdog
on: [pull_request]
jobs:
  remark-lint:
    name: runner / remark-lint
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: remark-lint
        uses: reviewdog/action-remark-lint@v2
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          reporter: github-pr-check

Inputs

github_token

Required. The GITHUB_TOKEN. Must be in form of github_token: ${{ secrets.github_token }}. Defaults to ${{ github.token }}.

workdir

Optional. The directory to run remark-lint in. Defaults to ..

remark_args

Optional. Additional remark-lint input arguments. Defaults to "".

annotate

Optional. Annotate remark-lint changes using reviewdog. Defaults to true.

tool_name

Optional. Tool name to use for reviewdog reporter. Defaults to remark-lint.

level

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

reporter

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

filter_mode

Optional. Filtering mode for the reviewdog command [added, diff_context, file, nofilter]. Defaults to added.

fail_on_error

Optional. Exit code for when reviewdog when errors are found [true, false]. Defaults to false.

reviewdog_flags

Optional. Additional reviewdog flags. Defaults to "".

Format your code

This action is meant to annotate any possible changes that would need to be made to make your code adhere to the remark-lint linting guidelines. It does not apply these changes to your codebase. If you also want to apply the changes to your repository, you can use the reviewdog/action-suggester. You can find examples of how this is done can be found in rickstaa/action-remark-lint

About

Run remark-lint with reviewdog

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 69.5%
  • Dockerfile 30.5%