From: Willy Tarreau Date: Wed, 4 Sep 2024 07:41:40 +0000 (+0200) Subject: DEV: patchbot: detect commit IDs starting with 7 chars X-Git-Tag: v3.1-dev7~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=531bf44a651df3b513fd9f091e46e702c1753254;p=thirdparty%2Fhaproxy.git DEV: patchbot: detect commit IDs starting with 7 chars Some commit messages contain commit IDs as short as 7 chars, let's detect them. --- diff --git a/dev/patchbot/scripts/post-ai.sh b/dev/patchbot/scripts/post-ai.sh index 3662fc85e9..cfd21a00a4 100755 --- a/dev/patchbot/scripts/post-ai.sh +++ b/dev/patchbot/scripts/post-ai.sh @@ -380,7 +380,7 @@ for patch in "${PATCHES[@]}"; do resp=$(echo "$resp" | sed -e "s|#\([0-9]\{1,5\}\)|#\1|g") # put links to commit IDs - resp=$(echo "$resp" | sed -e "s|\([0-9a-f]\{8,40\}\)|\1|g") + resp=$(echo "$resp" | sed -e "s|\([0-9a-f]\{7,40\}\)|\1|g") echo -n "$seq_num
" echo -n ""