You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2023/10/10 07:47:02 UTC

[logging-log4j-transform] branch main updated: Shorten pull/issue URLs in `generate-email.sh`

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-transform.git


The following commit(s) were added to refs/heads/main by this push:
     new 5a014af  Shorten pull/issue URLs in `generate-email.sh`
5a014af is described below

commit 5a014af184f8406aed405ba475e344fa1f7fc995
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Tue Oct 10 09:46:51 2023 +0200

    Shorten pull/issue 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 da6a571..2521fb6 100755
--- a/.github/generate-email.sh
+++ b/.github/generate-email.sh
@@ -48,7 +48,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"
+    awk "f{print} /^Release date::/{f=1}" "$RELEASE_NOTES_FILE" \
+        | sed -r 's!'$PROJECT_REPO'/(issues|pull)/[0-9]+\[([0-9]+)\]!#\2!g'
 }
 
 case $1 in