Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

GitHub Action to run `eslint` with `--fix` option and commit fixes

License

Notifications You must be signed in to change notification settings

getsentry/action-eslint-fix

Repository files navigation

getsentry/action-eslint-fix

Runs eslint (only on changed files in a PR), with --fix and commits the changes to the PR.

Installation

Add the following to your workflow config

    - name: Use current action
      uses: getsentry/action-eslint-fix@v1
      with:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

If you would prefer this action to not modify files for you, use the following config:

    - name: Use current action
      uses: getsentry/action-eslint-fix@v1
      with:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        dry: true