Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Jan 26, 2026

Bumps lefthook from 2.0.13 to 2.0.15.

Bumps [lefthook](https://github.com/evilmartians/lefthook) from 2.0.13 to 2.0.15.
- [Release notes](https://github.com/evilmartians/lefthook/releases)
- [Changelog](https://github.com/evilmartians/lefthook/blob/master/CHANGELOG.md)
- [Commits](evilmartians/lefthook@v2.0.13...v2.0.15)

---
updated-dependencies:
- dependency-name: lefthook
  dependency-version: 2.0.15
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Jan 26, 2026
@greptile-apps
Copy link

greptile-apps bot commented Jan 26, 2026

Greptile Summary

Updates lefthook from 2.0.13 to 2.0.15, bringing two minor patch releases with bug fixes and enhancements.

Key changes from upstream:

  • 2.0.15: Skips scripts if args given with empty file template - prevents execution of hook commands when file templates evaluate to empty
  • 2.0.14: Adds JSONC support, fixes skipping on empty files template, fixes custom hooks installation, dependency updates including YAML library switch

Impact:

  • Low-risk dependency update with no breaking changes
  • Improves handling of edge cases where file templates are empty
  • Compatible with existing lefthook.yml configuration using file templates like {staged_files} and {all_files}
  • All platform-specific binaries updated consistently

Confidence Score: 5/5

  • Safe to merge - routine dependency patch update with bug fixes
  • This is a low-risk dependency update from 2.0.13 to 2.0.15 for lefthook. The changes include bug fixes for edge cases (empty file templates), dependency updates, and new features (JSONC support) that don't affect existing functionality. The existing lefthook.yml configuration is fully compatible with these changes.
  • No files require special attention

Important Files Changed

Filename Overview
package.json Updates lefthook dependency from ^2.0.13 to ^2.0.15 - standard version bump
pnpm-lock.yaml Lock file updates for lefthook 2.0.15 and all platform-specific binaries

Sequence Diagram

sequenceDiagram
    participant Dev as Developer
    participant Dep as Dependabot
    participant PM as Package Manager (pnpm)
    participant LH as Lefthook
    
    Dep->>PM: Detect lefthook 2.0.13 → 2.0.15
    Dep->>PM: Update package.json version constraint
    PM->>PM: Resolve dependencies
    PM->>PM: Update pnpm-lock.yaml with new versions
    PM->>PM: Update platform-specific binaries (darwin/linux/windows/freebsd/openbsd)
    
    Note over Dev,LH: When developer commits code
    Dev->>LH: git commit
    LH->>LH: Read lefthook.yml configuration
    LH->>LH: Check file templates (staged_files/all_files)
    alt File template is empty (new in 2.0.15)
        LH->>LH: Skip script execution (bug fix)
    else File template has files
        LH->>LH: Execute configured hooks (rubocop, prettier, eslint, etc.)
    end
    LH->>Dev: Hook results
Loading

@github-actions
Copy link

PR body updated to plaintext for easier squash-merging. Original body content below:


Bumps lefthook from 2.0.13 to 2.0.15.

Release notes

Sourced from lefthook's releases.

v2.0.15

Changelog

  • f8dc321dd3ed3b7bdcad622a4011a268a63451e3 feat: skip scripts if args given with empty file template (#1277)

v2.0.14

Changelog

  • 037fcdca819684123dc1c62df1d14f4402b1e245 deps: December 2025 (#1209)
  • e80f8927482b638bcd068136d3624d5adc83f0b2 deps: switch from gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 (#1261)
  • 87350d63c401c47b9260d0023c7640e3885e0202 feat: add jsonc support (#1274)
  • 882159f29f83b1f4f175ed5116ac48c631639deb fix: don't install custom hooks to hooks dir (#1246)
  • 2bcab48ec33b2bf57e1a981734a73be4ea0a10ed fix: skip if any files template is empty (#1275)
Changelog

Sourced from lefthook's changelog.

2.0.15 (2026-01-13)

2.0.14 (2026-01-12)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants