Skip to content

pre-commit.ci lite

Actions
pre-commit.ci lite
v1.1.0
Latest
Star (38)

Build Status

action-lite

pre-commit.ci lite is an add-on for GitHub Actions which safely auto fixes PRs

setup

  1. install the GitHub Application on the relevant repositories

  2. add the GitHub action to your workflow as the last step in your job:

        - uses: pre-commit-ci/[email protected]
          if: always()

note: the step must have either the default name or contain the text pre-commit-ci-lite. the application uses this to find the right workflow.

options

  • msg: (default [pre-commit.ci lite] apply automatic fixes): commit message used for auto fixing

        - uses: pre-commit-ci/[email protected]
          if: always()
          with:
            msg: apply code formatting

example using pre-commit/action

technically pre-commit.ci lite works for any code modification, though it was built with pre-commit in mind. here is an example workflow:

on:
  pull_request:
  push:
    branches: [main, test-me-*]

jobs:
  main:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - uses: actions/setup-python@v4
      with:
        python-version: 3.x
    - uses: pre-commit/[email protected]
    - uses: pre-commit-ci/[email protected]
      if: always()

pre-commit.ci lite 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

pre-commit.ci lite
v1.1.0
Latest

pre-commit.ci lite 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.