chore(deps): update dependency lefthook to v2 #10

Open
Renovate wants to merge 1 commit from renovate/lefthook-2.x into master
Collaborator

This PR contains the following updates:

Package Change Age Confidence
lefthook ^1.10.8^2.0.0 age confidence

Release Notes

evilmartians/lefthook (lefthook)

v2.0.15

Compare Source

v2.0.14

Compare Source

v2.0.13

Compare Source

  • fix: set extends to empty slice after loading remotes (#​1259) by @​mrexox
  • fix: allow custom hooks in JSON schema by updating generator (#​1250) by @​jeonghoon11
  • docs: remove duplicate config: false description (#​1245) by @​scop
  • chore: add more tests (#​1244) by @​mrexox

v2.0.12

Compare Source

v2.0.11

Compare Source

v2.0.10

Compare Source

v2.0.9

Compare Source

v2.0.8

Compare Source

  • fix: do not escape custom templates in command replacement (#​1213) by @​joevin-sql-docto

v2.0.7

Compare Source

  • fix: prefer using lefthook from the $PATH (#​1211) by @​joevin-sql-docto

v2.0.6

Compare Source

  • feat: save original executable location in hooks (#​1208) by @​mrexox
  • docs: encourage python install using pipx (#​1207) by @​franzramadhan

v2.0.5

Compare Source

  • feat: add optional args to scripts (#​1206) by @​mrexox
  • deps: November 2025 (#​1200) by @​mrexox
  • chore: upgrade golangci-lint to 2.6.1, add modernize (#​1190) by @​scop
  • chore: publish artifact attestations (#​1189) by @​scop

v2.0.4

Compare Source

  • fix: glob_matcher jsonschema values
  • feat: add optional standard glob matcher (doublestar) (#​1188) by @​jasonwbarnett

v2.0.3

Compare Source

v2.0.2

Compare Source

  • fix: add mutex lock before all git commands (#​1178) by @​mrexox

v2.0.1

Compare Source

v2.0.0

Compare Source

Breaking changes

  • exclude option no longer accepts regexp, only globs.
  • skip_output option is dropped, use output instead.
  • Some CLI arguments have changed their names to make it more consistent. See lefthook run -h for details.
  • for only and skip options with - run: '...' values the command executer was changed to Bourne Shell.

Commits

  • fix: accept --fail-on-changes=false as override value (#​1168) by @​mrexox
  • feat: [breaking] use sh as command executor on Windows (#​1166) by @​mrexox
  • refactor: [breaking] drop support for exclude regexp (#​1162) by @​mrexox
  • refactor: [breaking] drop deprecated skip_output option (#​1159) by @​mrexox
  • refactor: [breaking] use another cli framework (#​1155) by @​mrexox

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [lefthook](https://github.com/evilmartians/lefthook) | [`^1.10.8` → `^2.0.0`](https://renovatebot.com/diffs/npm/lefthook/1.13.6/2.0.15) | ![age](https://developer.mend.io/api/mc/badges/age/npm/lefthook/2.0.15?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/lefthook/1.13.6/2.0.15?slim=true) | --- ### Release Notes <details> <summary>evilmartians/lefthook (lefthook)</summary> ### [`v2.0.15`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#2015-2026-01-13) [Compare Source](https://github.com/evilmartians/lefthook/compare/v2.0.14...v2.0.15) - docs: clarify remote settings ([#&#8203;1260](https://github.com/evilmartians/lefthook/pull/1260)) by [@&#8203;mrexox](https://github.com/mrexox) - feat: skip scripts if args given with empty file template ([#&#8203;1277](https://github.com/evilmartians/lefthook/pull/1277)) by [@&#8203;mrexox](https://github.com/mrexox) ### [`v2.0.14`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#2014-2026-01-12) [Compare Source](https://github.com/evilmartians/lefthook/compare/v2.0.13...v2.0.14) - fix: skip if any files template is empty ([#&#8203;1275](https://github.com/evilmartians/lefthook/pull/1275)) by [@&#8203;mrexox](https://github.com/mrexox) - feat: add jsonc support ([#&#8203;1274](https://github.com/evilmartians/lefthook/pull/1274)) by [@&#8203;mrexox](https://github.com/mrexox) - deps: switch from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 ([#&#8203;1261](https://github.com/evilmartians/lefthook/pull/1261)) by [@&#8203;scop](https://github.com/scop) - fix: don't install custom hooks to hooks dir ([#&#8203;1246](https://github.com/evilmartians/lefthook/pull/1246)) by [@&#8203;scop](https://github.com/scop) - deps: December 2025 ([#&#8203;1209](https://github.com/evilmartians/lefthook/pull/1209)) by [@&#8203;mrexox](https://github.com/mrexox) ### [`v2.0.13`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#2013-2025-12-26) [Compare Source](https://github.com/evilmartians/lefthook/compare/v2.0.12...v2.0.13) - fix: set extends to empty slice after loading remotes ([#&#8203;1259](https://github.com/evilmartians/lefthook/pull/1259)) by [@&#8203;mrexox]() - fix: allow custom hooks in JSON schema by updating generator ([#&#8203;1250](https://github.com/evilmartians/lefthook/pull/1250)) by [@&#8203;jeonghoon11]() - docs: remove duplicate config: false description ([#&#8203;1245](https://github.com/evilmartians/lefthook/pull/1245)) by [@&#8203;scop]() - chore: add more tests ([#&#8203;1244](https://github.com/evilmartians/lefthook/pull/1244)) by [@&#8203;mrexox]() ### [`v2.0.12`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#2012-2025-12-15) [Compare Source](https://github.com/evilmartians/lefthook/compare/v2.0.11...v2.0.12) - chore: small changes on diff printing ([#&#8203;1242](https://github.com/evilmartians/lefthook/pull/1242)) by [@&#8203;mrexox](https://github.com/mrexox) - feat: ability to show diff when failing on changes ([#&#8203;1227](https://github.com/evilmartians/lefthook/pull/1227)) by [@&#8203;scop](https://github.com/scop) - fix: make short status parser more robust ([#&#8203;1236](https://github.com/evilmartians/lefthook/pull/1236)) by [@&#8203;scop](https://github.com/scop) - docs: fix readme ([#&#8203;1235](https://github.com/evilmartians/lefthook/pull/1235)) by [@&#8203;matdibu](https://github.com/matdibu) ### [`v2.0.11`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#2011-2025-12-12) [Compare Source](https://github.com/evilmartians/lefthook/compare/v2.0.10...v2.0.11) - feat: refetch and cleanup on ref change ([#&#8203;1210](https://github.com/evilmartians/lefthook/pull/1210)) by [@&#8203;mrexox](https://github.com/mrexox) - ci: npm trusted publishing ([#&#8203;1234](https://github.com/evilmartians/lefthook/pull/1234)) by [@&#8203;mrexox](https://github.com/mrexox) - feat: more rudimentary shell completions ([#&#8203;1230](https://github.com/evilmartians/lefthook/pull/1230)) by [@&#8203;scop](https://github.com/scop) ### [`v2.0.10`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#2010-2025-12-12) [Compare Source](https://github.com/evilmartians/lefthook/compare/v2.0.9...v2.0.10) - feat: add no\_auto\_install to lefthook.yml ([#&#8203;1231](https://github.com/evilmartians/lefthook/pull/1231)) by [@&#8203;pavelzw](https://github.com/pavelzw) - fix: skip if empty files template ([#&#8203;1233](https://github.com/evilmartians/lefthook/pull/1233)) by [@&#8203;mrexox](https://github.com/mrexox) ### [`v2.0.9`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#209-2025-12-08) [Compare Source](https://github.com/evilmartians/lefthook/compare/v2.0.8...v2.0.9) - fix: skip pre commit hook if no staged files ([#&#8203;1229](https://github.com/evilmartians/lefthook/pull/1229)) by [@&#8203;mrexox](https://github.com/mrexox) - fix: do not try to hash-object directories ([#&#8203;1220](https://github.com/evilmartians/lefthook/pull/1220)) by [@&#8203;scop](https://github.com/scop) - fix: check and report Scanner errors ([#&#8203;1222](https://github.com/evilmartians/lefthook/pull/1222)) by [@&#8203;scop](https://github.com/scop) - refactor: command executor tweaks ([#&#8203;1224](https://github.com/evilmartians/lefthook/pull/1224)) by [@&#8203;scop](https://github.com/scop) - refactor: remove some redundant code ([#&#8203;1221](https://github.com/evilmartians/lefthook/pull/1221)) by [@&#8203;scop](https://github.com/scop) - fix: improve separation of options and filenames for more git commands ([#&#8203;1225](https://github.com/evilmartians/lefthook/pull/1225)) by [@&#8203;scop](https://github.com/scop) - chore: upgrade golangci-lint to 2.7.1, add godoclint ([#&#8203;1223](https://github.com/evilmartians/lefthook/pull/1223)) by [@&#8203;scop](https://github.com/scop) - chore: remove unnecessary .svg executable permissions ([#&#8203;1219](https://github.com/evilmartians/lefthook/pull/1219)) by [@&#8203;scop](https://github.com/scop) ### [`v2.0.8`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#208-2025-12-05) [Compare Source](https://github.com/evilmartians/lefthook/compare/v2.0.7...v2.0.8) - fix: do not escape custom templates in command replacement ([#&#8203;1213](https://github.com/evilmartians/lefthook/pull/1213)) by [@&#8203;joevin-sql-docto]() ### [`v2.0.7`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#207-2025-12-04) [Compare Source](https://github.com/evilmartians/lefthook/compare/v2.0.6...v2.0.7) - fix: prefer using lefthook from the $PATH ([#&#8203;1211](https://github.com/evilmartians/lefthook/pull/1211)) by [@&#8203;joevin-sql-docto]() ### [`v2.0.6`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#206-2025-12-03) [Compare Source](https://github.com/evilmartians/lefthook/compare/v2.0.5...v2.0.6) - feat: save original executable location in hooks ([#&#8203;1208](https://github.com/evilmartians/lefthook/pull/1208)) by [@&#8203;mrexox]() - docs: encourage python install using pipx ([#&#8203;1207](https://github.com/evilmartians/lefthook/pull/1207)) by [@&#8203;franzramadhan]() ### [`v2.0.5`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#205-2025-12-02) [Compare Source](https://github.com/evilmartians/lefthook/compare/v2.0.4...v2.0.5) - feat: add optional args to scripts ([#&#8203;1206](https://github.com/evilmartians/lefthook/pull/1206)) by [@&#8203;mrexox]() - deps: November 2025 ([#&#8203;1200](https://github.com/evilmartians/lefthook/pull/1200)) by [@&#8203;mrexox]() - chore: upgrade golangci-lint to 2.6.1, add modernize ([#&#8203;1190](https://github.com/evilmartians/lefthook/pull/1190)) by [@&#8203;scop]() - chore: publish artifact attestations ([#&#8203;1189](https://github.com/evilmartians/lefthook/pull/1189)) by [@&#8203;scop]() ### [`v2.0.4`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#204-2025-11-13) [Compare Source](https://github.com/evilmartians/lefthook/compare/v2.0.3...v2.0.4) - fix: glob\_matcher jsonschema values - feat: add optional standard glob matcher (doublestar) ([#&#8203;1188](https://github.com/evilmartians/lefthook/pull/1188)) by [@&#8203;jasonwbarnett]() ### [`v2.0.3`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#203-2025-11-10) [Compare Source](https://github.com/evilmartians/lefthook/compare/v2.0.2...v2.0.3) - feat: fail\_on\_changes non-ci option ([#&#8203;1186](https://github.com/evilmartians/lefthook/pull/1186)) by [@&#8203;scop](https://github.com/scop) - deps: update mimetypes ([#&#8203;1185](https://github.com/evilmartians/lefthook/pull/1185)) by [@&#8203;mrexox](https://github.com/mrexox) ### [`v2.0.2`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#202-2025-10-29) [Compare Source](https://github.com/evilmartians/lefthook/compare/v2.0.1...v2.0.2) - fix: add mutex lock before all git commands ([#&#8203;1178](https://github.com/evilmartians/lefthook/pull/1178)) by [@&#8203;mrexox]() ### [`v2.0.1`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#2015-2026-01-13) [Compare Source](https://github.com/evilmartians/lefthook/compare/v2.0.0...v2.0.1) - docs: clarify remote settings ([#&#8203;1260](https://github.com/evilmartians/lefthook/pull/1260)) by [@&#8203;mrexox](https://github.com/mrexox) - feat: skip scripts if args given with empty file template ([#&#8203;1277](https://github.com/evilmartians/lefthook/pull/1277)) by [@&#8203;mrexox](https://github.com/mrexox) ### [`v2.0.0`](https://github.com/evilmartians/lefthook/blob/HEAD/CHANGELOG.md#200-2025-10-20) [Compare Source](https://github.com/evilmartians/lefthook/compare/v1.13.6...v2.0.0) **Breaking changes** - `exclude` option no longer accepts regexp, only globs. - `skip_output` option is dropped, use `output` instead. - Some CLI arguments have changed their names to make it more consistent. See `lefthook run -h` for details. - for `only` and `skip` options with `- run: '...'` values the command executer was changed to Bourne Shell. **Commits** - fix: accept --fail-on-changes=false as override value ([#&#8203;1168](https://github.com/evilmartians/lefthook/pull/1168)) by [@&#8203;mrexox]() - feat: \[**breaking**] use sh as command executor on Windows ([#&#8203;1166](https://github.com/evilmartians/lefthook/pull/1166)) by [@&#8203;mrexox]() - refactor: \[**breaking**] drop support for exclude regexp ([#&#8203;1162](https://github.com/evilmartians/lefthook/pull/1162)) by [@&#8203;mrexox]() - refactor: \[**breaking**] drop deprecated skip\_output option ([#&#8203;1159](https://github.com/evilmartians/lefthook/pull/1159)) by [@&#8203;mrexox]() - refactor: \[**breaking**] use another cli framework ([#&#8203;1155](https://github.com/evilmartians/lefthook/pull/1155)) by [@&#8203;mrexox]() </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40Mi45IiwidXBkYXRlZEluVmVyIjoiNDIuNjguMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/lefthook-2.x:renovate/lefthook-2.x
git switch renovate/lefthook-2.x

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff renovate/lefthook-2.x
git switch renovate/lefthook-2.x
git rebase master
git switch master
git merge --ff-only renovate/lefthook-2.x
git switch renovate/lefthook-2.x
git rebase master
git switch master
git merge --no-ff renovate/lefthook-2.x
git switch master
git merge --squash renovate/lefthook-2.x
git switch master
git merge --ff-only renovate/lefthook-2.x
git switch master
git merge renovate/lefthook-2.x
git push origin master
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
LazyList/extension!10
No description provided.