brokenpip3/Pre-commit auto update
A GitHub Action that will automatically update your pre-commit hooks version and create a PR
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit May 23, 2026
- License
- MIT
Pinned Snippet
uses: brokenpip3/action-pre-commit-update@24b7a510db4356b7cb0a2d0b8f72d1226fa7195b # 0.0.5tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| pr-create | Specify if you want to create the PR or not | no | true |
| pr-title | PR Title | no | chore(pre-commit): auto update hooks |
| pr-branch | PR Branch | no | auto-update-pre-commit-hooks |
| pr-targetbranch | PR Target branch | no | main |
| github-token | Github Token, required if PR create is true | no | — |
| update-latest | Instead of using the latest tag use the latest commit, equals to run with '--bleeding-edge' | no | false |
| update-freeze | Store hashes in rev instead of tag names, equals to run with '--freeze' | no | true |
| update-repo | Only update a specifi repository, equals to run with '--repo' | no | "" |
| update-allfiles | Run hooks vs all the files of the repo | no | false |
Outputs
| name | description |
|---|---|
| update-hit | True/False if changes in .pre-commit-config.yaml are present |
| options | Options used in pre-commit update command |