xiaogaozi / autocorrect-action

GitHub action for use AutoCorrect as lint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autocorrect-action

GitHub Action to use AutoCorrect for lint.

https://github.com/huacnlee/autocorrect

autocorrect lint output

Usage

steps:
  - name: Check source code
    uses: actions/checkout@main

  - name: AutoCorrect
    uses: huacnlee/autocorrect-action@main

Only check changed file by PR

steps:
  - name: Check source code
    uses: actions/checkout@main

  - name: AutoCorrect
    uses: huacnlee/autocorrect-action@main
    with:
      args:
        - --lint $(git diff --diff-filter=AM --name-only ${{ github.event.pull_request.base.sha }}}

About

GitHub action for use AutoCorrect as lint

License:MIT License


Languages

Language:Dockerfile 67.1%Language:Shell 32.9%