From a3ba3d005584d0709cce794a7f5410588b495b22 Mon Sep 17 00:00:00 2001 From: LangLangbart <92653266+LangLangBart@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:43:13 +0200 Subject: [PATCH] chore: Increase git commit hash length to 12 characters --- gh-notify | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gh-notify b/gh-notify index 7278106..9b85a1c 100755 --- a/gh-notify +++ b/gh-notify @@ -318,7 +318,8 @@ process_url() { local type="$1" url="$2" local number prerelease if command grep -q "Commit" <<<"$type"; then - command basename "$url" | command head -c 7 + # https://blog.cuviper.com/2013/11/10/how-short-can-git-abbreviate/ + command basename "$url" | command head -c 12 elif command grep -q "Release" <<<"$type"; then if IFS=$'\t' read -r number prerelease < <(command gh api "$url" \ --cache=100h \