Skip to content

Commit

Permalink
chore: Increase git commit hash length to 12 characters (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
LangLangBart authored Apr 24, 2024
1 parent dce9a68 commit 5c2db4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gh-notify
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 5c2db4c

Please sign in to comment.