From 6bf87c3bd4c99bc61ab39aa8c0df445f407c0bcd Mon Sep 17 00:00:00 2001 From: "Thomas G." <1809566+tomgrv@users.noreply.github.com> Date: Tue, 17 Sep 2024 16:24:11 +0200 Subject: [PATCH] =?UTF-8?q?refactor:=20=E2=99=BB=EF=B8=8F=20improve=20cz?= =?UTF-8?q?=20handling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/githooks/_prepare-commit-msg.sh | 2 -- src/githooks/configure-cz.sh | 4 ++++ src/githooks/devcontainer-feature.json | 2 +- src/gitutils/devcontainer-feature.json | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 src/githooks/configure-cz.sh diff --git a/src/githooks/_prepare-commit-msg.sh b/src/githooks/_prepare-commit-msg.sh index 2475df3..bb7e153 100644 --- a/src/githooks/_prepare-commit-msg.sh +++ b/src/githooks/_prepare-commit-msg.sh @@ -8,8 +8,6 @@ if [ -t 1 ]; then fi # Install commitizen plugins -npm install --no-save commitizen 2>/dev/null 1>&2 -npm install --no-save @commitlint/cli 2>/dev/null 1>&2 npm install --no-save $(cat package.json | npx --yes jqn '.config.commitizen.path' | tr -d "'[]:,") 2>/dev/null 1>&2 # Edit commit message diff --git a/src/githooks/configure-cz.sh b/src/githooks/configure-cz.sh new file mode 100644 index 0000000..ce047df --- /dev/null +++ b/src/githooks/configure-cz.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -e + +npm install -g commitizen @commitlint/cli git-cz @commitlint/cz-commitlint diff --git a/src/githooks/devcontainer-feature.json b/src/githooks/devcontainer-feature.json index 52be372..9b37cc5 100644 --- a/src/githooks/devcontainer-feature.json +++ b/src/githooks/devcontainer-feature.json @@ -1,7 +1,7 @@ { "name": "Git Hooks", "id": "githooks", - "version": "1.2.12", + "version": "1.3.0", "description": "A feature to add useful Git hooks to your project", "installsAfter": ["ghcr.io/devcontainers/features/common-utils"], "dependsOn": { diff --git a/src/gitutils/devcontainer-feature.json b/src/gitutils/devcontainer-feature.json index 6412886..ac46d38 100644 --- a/src/gitutils/devcontainer-feature.json +++ b/src/gitutils/devcontainer-feature.json @@ -1,7 +1,7 @@ { "name": "Git Aliases", "id": "gitutils", - "version": "1.7.0", + "version": "1.8.0", "description": "A feature to add useful Git aliases to your shell.", "installsAfter": [ "ghcr.io/devcontainers/features/common-utils", @@ -12,4 +12,4 @@ "ghcr.io/tomgrv/devcontainer-features/gitversion": "5.*" }, "postStartCommand": "/usr/local/share/gitutils/configure.sh" -} \ No newline at end of file +}