This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch release/2.21.1
in repository https://gitbox.apache.org/repos/asf/logging-log4j-jmx-gui.git


The following commit(s) were added to refs/heads/release/2.21.1 by this push:
     new 89fe636  Fix `generate-email.sh`
89fe636 is described below

commit 89fe6363ec2ad6408439e10a1bebd25fa488af48
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Thu Oct 19 21:31:38 2023 +0200

    Fix `generate-email.sh`
---
 .github/generate-email.sh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/.github/generate-email.sh b/.github/generate-email.sh
index 8d93ba7..6d61cb5 100755
--- a/.github/generate-email.sh
+++ b/.github/generate-email.sh
@@ -39,14 +39,15 @@ PROJECT_VERSION="$2"
 COMMIT_ID="$3"
 
 # Check release notes file
-RELEASE_NOTES_FILE="$SCRIPT_DIR/../target/release-notes/$PROJECT_VERSION.md"
+RELEASE_NOTES_FILE="$SCRIPT_DIR/../src/site/_release-notes/_$PROJECT_VERSION.adoc"
 [ -f "$RELEASE_NOTES_FILE" ] || {
     stderr "Couldn't find release notes file: $RELEASE_NOTES_FILE"
     exit 1
 }
 
 dump_release_notes() {
-    awk "f{print} /^# $PROJECT_VERSION/{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
@@ -75,7 +76,7 @@ everyone to test the release, but only the Logging Services 
PMC
 votes are officially counted. At least 3 +1 votes and more
 positive than negative votes are required.
 
-# Release Notes
+=== Release Notes
 EOF
     dump_release_notes
     ;;
@@ -92,7 +93,7 @@ output. It can be run as a standalone application or as a 
JConsole plugin.
 
 [1] $PROJECT_REPO
 
-# Release Notes
+=== Release Notes
 EOF
     dump_release_notes
     ;;

Reply via email to