This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git
The following commit(s) were added to refs/heads/main by this push:
new ba4b0d0 Shorten GitHub URLs in `generate-email.sh`
ba4b0d0 is described below
commit ba4b0d079504f8d41bc2c3138c8a5cf7f88c9f6c
Author: Volkan Yazıcı <[email protected]>
AuthorDate: Thu Oct 26 12:46:37 2023 +0200
Shorten GitHub URLs in `generate-email.sh`
---
.github/generate-email.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/generate-email.sh b/.github/generate-email.sh
index 8fceca9..af536e9 100755
--- a/.github/generate-email.sh
+++ b/.github/generate-email.sh
@@ -49,7 +49,8 @@
RELEASE_NOTES_FILE="$SCRIPT_DIR/../src/site/_release-notes/_$PROJECT_VERSION.ado
dump_release_notes() {
awk "f{print} /^Release date::/{f=1}" "$RELEASE_NOTES_FILE" \
- | sed -r 's!'$PROJECT_REPO'/(issues|pull)/[0-9]+\[([0-9]+)\]!#\2!g'
+ | sed -r 's!'$PROJECT_REPO'/(issues|pull)/[0-9]+\[([0-9]+)\]!#\2!g' \
+ | sed -r
's!https://github.com/([^/]+)/([^/]+)/(pull|issues)/([0-9]+)\[(\1/\2#\4)\]!\5!g'
}
case $1 in