From b3a74ad7a54c6b101eb160f62a109211fc686e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 2 Jun 2022 13:24:10 +0200 Subject: [PATCH] use 8 char commits SHAs for status-go diff link MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- scripts/hooks/prepare-commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/hooks/prepare-commit-msg b/scripts/hooks/prepare-commit-msg index 092ec04152..6031019366 100755 --- a/scripts/hooks/prepare-commit-msg +++ b/scripts/hooks/prepare-commit-msg @@ -10,7 +10,7 @@ GO_COMMIT_MERGE_BASE=$(git show "${MERGE_BASE}":status-go-version.json | jq -r ' GO_COMMIT_CURRENT=$(jq -r '."commit-sha1"' status-go-version.json) GITHUB_LINK_PREFIX="https://github.com/status-im/status-go/compare/" # Link to the current StatusGo changelog being updated. -GITHUB_LINK="${GITHUB_LINK_PREFIX}${GO_COMMIT_MERGE_BASE}...${GO_COMMIT_CURRENT}" +GITHUB_LINK="${GITHUB_LINK_PREFIX}${GO_COMMIT_MERGE_BASE::8}...${GO_COMMIT_CURRENT::8}" COMMIT_MSG_FILE=$1 # Check if the commit message already contains the link (rebase) and update otherwise insert into line2