open-turo/Pre-commit

GitHub Action for running pre-commit hooks against the repository. Conditionally installs tools needed for the Action to be able to perform its duties such as `npm`, `pre-commit`, etc.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 9, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: open-turo/action-pre-commit@03f099db60e1386a5e8b3e6612057965acfdb11d # v3.6.1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
config-fileThe config file to present to commitlint-github-actionyes.commitlintrc.yaml
disable-commitlintSet this to "true" to disable commitlint entirelynofalse
turo-conventional-commitSet this to "false" to customize conventional commit configurationyestrue
only-changedSet this to "true" to only run pre-commit against changed files, and not the entire repositoryno
stageSet this to run pre-commit against a specific stage of the pre-commit hooks.no
s3-bucket-nameS3 bucket name to cache node_modules to speed up dependency installation.no
s3-bucket-regionS3 bucket region to cache node_modules to speed up dependency installation.no
github-tokenSets a GitHub token that allows pre-commit to fetch private reposno
namedescription
cache-hitWhether the cache was hit when installing dependencies