From 531bf44a651df3b513fd9f091e46e702c1753254 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 4 Sep 2024 09:41:40 +0200 Subject: [PATCH] DEV: patchbot: detect commit IDs starting with 7 chars Some commit messages contain commit IDs as short as 7 chars, let's detect them. --- dev/patchbot/scripts/post-ai.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/patchbot/scripts/post-ai.sh b/dev/patchbot/scripts/post-ai.sh index 3662fc85e..cfd21a00a 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 ""