From 607c9a60f633864342af0c6df1fb7f0e52046baa Mon Sep 17 00:00:00 2001 From: Valentin Kiselev Date: Tue, 14 Jan 2025 18:15:21 +0300 Subject: [PATCH] 1.10.5: add lefthook option for custom path or command --- CHANGELOG.md | 5 +++++ docs/mdbook/installation/swift.md | 2 +- internal/version/version.go | 2 +- packaging/aur/PKGBUILD | 2 +- packaging/npm-bundled/package.json | 2 +- packaging/npm-installer/package.json | 2 +- .../npm/lefthook-darwin-arm64/package.json | 2 +- .../npm/lefthook-darwin-x64/package.json | 2 +- .../npm/lefthook-freebsd-arm64/package.json | 2 +- .../npm/lefthook-freebsd-x64/package.json | 2 +- .../npm/lefthook-linux-arm64/package.json | 2 +- packaging/npm/lefthook-linux-x64/package.json | 2 +- .../npm/lefthook-openbsd-arm64/package.json | 2 +- .../npm/lefthook-openbsd-x64/package.json | 2 +- .../npm/lefthook-windows-arm64/package.json | 2 +- .../npm/lefthook-windows-x64/package.json | 2 +- packaging/npm/lefthook/package.json | 22 +++++++++---------- packaging/pack.rb | 2 +- packaging/pypi/setup.py | 2 +- packaging/rubygems/lefthook.gemspec | 2 +- 20 files changed, 34 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b32f8ab8..06f0f11c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Change log +## 1.10.5 (2025-01-14) + +- feat: add lefthook option for custom path or command ([#927](https://github.com/evilmartians/lefthook/pull/927)) by @mrexox +- chore: update config template with new jobs by @mrexox + ## 1.10.4 (2025-01-13) - fix: avoid skipping pre commit when deleted files staged ([#925](https://github.com/evilmartians/lefthook/pull/925)) by @mrexox diff --git a/docs/mdbook/installation/swift.md b/docs/mdbook/installation/swift.md index a6706fd3..10eb1e0a 100644 --- a/docs/mdbook/installation/swift.md +++ b/docs/mdbook/installation/swift.md @@ -5,7 +5,7 @@ You can find the Swift wrapper plugin [here](https://github.com/csjones/lefthook Utilize lefthook in your Swift project using Swift Package Manager: ```swift -.package(url: "https://github.com/csjones/lefthook-plugin.git", exact: "1.10.4"), +.package(url: "https://github.com/csjones/lefthook-plugin.git", exact: "1.10.5"), ``` Or, with [mint](https://github.com/yonaskolb/Mint): diff --git a/internal/version/version.go b/internal/version/version.go index 2ef6bcc3..98fd7185 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -8,7 +8,7 @@ import ( "strconv" ) -const version = "1.10.4" +const version = "1.10.5" var ( // Is set via -X github.com/evilmartians/lefthook/internal/version.commit={commit}. diff --git a/packaging/aur/PKGBUILD b/packaging/aur/PKGBUILD index c185971b..f5f5f60c 100644 --- a/packaging/aur/PKGBUILD +++ b/packaging/aur/PKGBUILD @@ -2,7 +2,7 @@ pkgname=lefthook pkgdesc="Git hooks manager" -pkgver=1.10.4 +pkgver=1.10.5 pkgrel=1 arch=('x86_64' 'aarch64') url="https://github.com/evilmartians/lefthook" diff --git a/packaging/npm-bundled/package.json b/packaging/npm-bundled/package.json index b641572e..c2095dbf 100644 --- a/packaging/npm-bundled/package.json +++ b/packaging/npm-bundled/package.json @@ -1,6 +1,6 @@ { "name": "@evilmartians/lefthook", - "version": "1.10.4", + "version": "1.10.5", "description": "Simple git hooks manager", "main": "bin/index.js", "bin": { diff --git a/packaging/npm-installer/package.json b/packaging/npm-installer/package.json index d5cbb368..b8386ee5 100644 --- a/packaging/npm-installer/package.json +++ b/packaging/npm-installer/package.json @@ -1,6 +1,6 @@ { "name": "@evilmartians/lefthook-installer", - "version": "1.10.4", + "version": "1.10.5", "description": "Simple git hooks manager", "main": "bin/index.js", "bin": { diff --git a/packaging/npm/lefthook-darwin-arm64/package.json b/packaging/npm/lefthook-darwin-arm64/package.json index d0896510..fce1ff75 100644 --- a/packaging/npm/lefthook-darwin-arm64/package.json +++ b/packaging/npm/lefthook-darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "lefthook-darwin-arm64", - "version": "1.10.4", + "version": "1.10.5", "description": "The macOS ARM 64-bit binary for lefthook, git hooks manager.", "preferUnplugged": false, "repository": { diff --git a/packaging/npm/lefthook-darwin-x64/package.json b/packaging/npm/lefthook-darwin-x64/package.json index 994150e6..e561cc58 100644 --- a/packaging/npm/lefthook-darwin-x64/package.json +++ b/packaging/npm/lefthook-darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "lefthook-darwin-x64", - "version": "1.10.4", + "version": "1.10.5", "description": "The macOS 64-bit binary for lefthook, git hooks manager.", "preferUnplugged": false, "repository": { diff --git a/packaging/npm/lefthook-freebsd-arm64/package.json b/packaging/npm/lefthook-freebsd-arm64/package.json index 8479b221..ea2e9cba 100644 --- a/packaging/npm/lefthook-freebsd-arm64/package.json +++ b/packaging/npm/lefthook-freebsd-arm64/package.json @@ -1,6 +1,6 @@ { "name": "lefthook-freebsd-arm64", - "version": "1.10.4", + "version": "1.10.5", "description": "The FreeBSD ARM 64-bit binary for lefthook, git hooks manager.", "preferUnplugged": false, "repository": { diff --git a/packaging/npm/lefthook-freebsd-x64/package.json b/packaging/npm/lefthook-freebsd-x64/package.json index c5b463be..afa1001b 100644 --- a/packaging/npm/lefthook-freebsd-x64/package.json +++ b/packaging/npm/lefthook-freebsd-x64/package.json @@ -1,6 +1,6 @@ { "name": "lefthook-freebsd-x64", - "version": "1.10.4", + "version": "1.10.5", "description": "The FreeBSD 64-bit binary for lefthook, git hooks manager.", "preferUnplugged": false, "repository": { diff --git a/packaging/npm/lefthook-linux-arm64/package.json b/packaging/npm/lefthook-linux-arm64/package.json index f9b1c589..229fd0c2 100644 --- a/packaging/npm/lefthook-linux-arm64/package.json +++ b/packaging/npm/lefthook-linux-arm64/package.json @@ -1,6 +1,6 @@ { "name": "lefthook-linux-arm64", - "version": "1.10.4", + "version": "1.10.5", "description": "The Linux ARM 64-bit binary for lefthook, git hooks manager.", "preferUnplugged": false, "repository": { diff --git a/packaging/npm/lefthook-linux-x64/package.json b/packaging/npm/lefthook-linux-x64/package.json index 1a77fd36..6d7eed31 100644 --- a/packaging/npm/lefthook-linux-x64/package.json +++ b/packaging/npm/lefthook-linux-x64/package.json @@ -1,6 +1,6 @@ { "name": "lefthook-linux-x64", - "version": "1.10.4", + "version": "1.10.5", "description": "The Linux 64-bit binary for lefthook, git hooks manager.", "preferUnplugged": false, "repository": { diff --git a/packaging/npm/lefthook-openbsd-arm64/package.json b/packaging/npm/lefthook-openbsd-arm64/package.json index e2a09546..bea6fe58 100644 --- a/packaging/npm/lefthook-openbsd-arm64/package.json +++ b/packaging/npm/lefthook-openbsd-arm64/package.json @@ -1,6 +1,6 @@ { "name": "lefthook-openbsd-arm64", - "version": "1.10.4", + "version": "1.10.5", "description": "The OpenBSD ARM 64-bit binary for lefthook, git hooks manager.", "preferUnplugged": false, "repository": { diff --git a/packaging/npm/lefthook-openbsd-x64/package.json b/packaging/npm/lefthook-openbsd-x64/package.json index 29c4dd7f..d1210a53 100644 --- a/packaging/npm/lefthook-openbsd-x64/package.json +++ b/packaging/npm/lefthook-openbsd-x64/package.json @@ -1,6 +1,6 @@ { "name": "lefthook-openbsd-x64", - "version": "1.10.4", + "version": "1.10.5", "description": "The OpenBSD 64-bit binary for lefthook, git hooks manager.", "preferUnplugged": false, "repository": { diff --git a/packaging/npm/lefthook-windows-arm64/package.json b/packaging/npm/lefthook-windows-arm64/package.json index 7315a377..a6d68e95 100644 --- a/packaging/npm/lefthook-windows-arm64/package.json +++ b/packaging/npm/lefthook-windows-arm64/package.json @@ -1,6 +1,6 @@ { "name": "lefthook-windows-arm64", - "version": "1.10.4", + "version": "1.10.5", "description": "The Windows ARM 64-bit binary for lefthook, git hooks manager.", "preferUnplugged": false, "repository": { diff --git a/packaging/npm/lefthook-windows-x64/package.json b/packaging/npm/lefthook-windows-x64/package.json index b225a246..c77d4d8f 100644 --- a/packaging/npm/lefthook-windows-x64/package.json +++ b/packaging/npm/lefthook-windows-x64/package.json @@ -1,6 +1,6 @@ { "name": "lefthook-windows-x64", - "version": "1.10.4", + "version": "1.10.5", "description": "The Windows 64-bit binary for lefthook, git hooks manager.", "preferUnplugged": false, "repository": { diff --git a/packaging/npm/lefthook/package.json b/packaging/npm/lefthook/package.json index b3f03001..168fd2dc 100644 --- a/packaging/npm/lefthook/package.json +++ b/packaging/npm/lefthook/package.json @@ -1,6 +1,6 @@ { "name": "lefthook", - "version": "1.10.4", + "version": "1.10.5", "description": "Simple git hooks manager", "repository": { "type": "git", @@ -23,16 +23,16 @@ }, "homepage": "https://github.com/evilmartians/lefthook#readme", "optionalDependencies": { - "lefthook-darwin-arm64": "1.10.4", - "lefthook-darwin-x64": "1.10.4", - "lefthook-linux-arm64": "1.10.4", - "lefthook-linux-x64": "1.10.4", - "lefthook-freebsd-arm64": "1.10.4", - "lefthook-freebsd-x64": "1.10.4", - "lefthook-openbsd-arm64": "1.10.4", - "lefthook-openbsd-x64": "1.10.4", - "lefthook-windows-arm64": "1.10.4", - "lefthook-windows-x64": "1.10.4" + "lefthook-darwin-arm64": "1.10.5", + "lefthook-darwin-x64": "1.10.5", + "lefthook-linux-arm64": "1.10.5", + "lefthook-linux-x64": "1.10.5", + "lefthook-freebsd-arm64": "1.10.5", + "lefthook-freebsd-x64": "1.10.5", + "lefthook-openbsd-arm64": "1.10.5", + "lefthook-openbsd-x64": "1.10.5", + "lefthook-windows-arm64": "1.10.5", + "lefthook-windows-x64": "1.10.5" }, "scripts": { "postinstall": "node postinstall.js" diff --git a/packaging/pack.rb b/packaging/pack.rb index 7723400b..3db5757e 100755 --- a/packaging/pack.rb +++ b/packaging/pack.rb @@ -4,7 +4,7 @@ require "digest" require "open-uri" -VERSION = "1.10.4" +VERSION = "1.10.5" ROOT = File.join(__dir__, "..") DIST = File.join(ROOT, "dist") diff --git a/packaging/pypi/setup.py b/packaging/pypi/setup.py index 274078fe..3d124727 100644 --- a/packaging/pypi/setup.py +++ b/packaging/pypi/setup.py @@ -5,7 +5,7 @@ setup( name='lefthook', - version='1.10.4', + version='1.10.5', author='Evil Martians', author_email='lefthook@evilmartians.com', url='https://github.com/evilmartians/lefthook', diff --git a/packaging/rubygems/lefthook.gemspec b/packaging/rubygems/lefthook.gemspec index 4d8b68c8..03e5229b 100644 --- a/packaging/rubygems/lefthook.gemspec +++ b/packaging/rubygems/lefthook.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |spec| spec.name = "lefthook" - spec.version = "1.10.4" + spec.version = "1.10.5" spec.authors = ["A.A.Abroskin", "Evil Martians"] spec.email = ["lefthook@evilmartians.com"]