From e951e951102249707a4c899f0d194b781c3466d2 Mon Sep 17 00:00:00 2001 From: welpo Date: Sat, 2 Mar 2024 15:56:47 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20misc(release):=20replace=20both?= =?UTF-8?q?=20pull=20and=20issue=20links?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release b/release index dc0b471..22ed298 100644 --- a/release +++ b/release @@ -52,7 +52,7 @@ changelog=$(git cliff --tag "$VERSION_TAG" --unreleased --strip all) # Clean up tag's changelog; tag descriptions don't support markdown. # Remove PR links. -changelog=$(echo "$changelog" | sed -E 's/\[\#([0-9]+)\]\(https:\/\/github\.com\/welpo\/[^\/]+\/issues\/([0-9]+)\)/#\1/g') +changelog=$(echo "$changelog" | sed -E 's/\[\#([0-9]+)\]\(https:\/\/github\.com\/welpo\/[^\/]+\/(issues|pull)\/([0-9]+)\)/#\1/g') # Remove commit links. changelog=$(echo "$changelog" | sed -E 's/\[([0-9a-f]+)\]\(https:\/\/github\.com\/welpo\/[^\/]+\/commit\/([0-9a-f]+)\)/\1/g') # Remove scopes.