Skip to content

huacnlee.autocorrect

Actions
Use autocorrect to check
v2.5.4
Latest
Star (8)

autocorrect-action

GitHub Action to use AutoCorrect for lint.

https://github.com/huacnlee/autocorrect

autocorrect lint output

Usage

steps:
  - uses: actions/checkout@v4
  - name: AutoCorrect
    uses: huacnlee/autocorrect-action@v2

Use NPM version AutoCorrect

steps:
  - uses: actions/checkout@v4
  - name: AutoCorrect
    uses: huacnlee/autocorrect-action@v2
    with:
      use_npm: true

Enable ReviewDog for Report

steps:
  - uses: actions/checkout@v4
  - name: AutoCorrect
    uses: huacnlee/autocorrect-action@v2
  - name: Report ReviewDog
    if: failure()
    uses: huacnlee/autocorrect-action@v2
    env:
      REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    with:
      reviewdog: true
image

Only check changed file by PR

steps:
  - uses: actions/checkout@v4
  - name: AutoCorrect
    uses: huacnlee/autocorrect-action@v2
    with:
      args: --lint --no-diff-bg-color $(git diff --diff-filter=AM --name-only ${{ github.event.pull_request.base.sha }}}

huacnlee.autocorrect is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Use autocorrect to check
v2.5.4
Latest

huacnlee.autocorrect is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.