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

lhotari pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pulsar-site.git

commit e5f88d90b87e9ad0a86f1b3129c95510a59fff52
Author: Lari Hotari <[email protected]>
AuthorDate: Tue Apr 2 08:44:50 2024 +0300

    Improve release notes guide
---
 contribute/release-note-guide.md | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/contribute/release-note-guide.md b/contribute/release-note-guide.md
index 8da5adae2063..6b0b7a95a8c2 100644
--- a/contribute/release-note-guide.md
+++ b/contribute/release-note-guide.md
@@ -49,7 +49,15 @@ Here are 2 approaches:
 Using "git log"
 
 ```bash
-git log --reverse  --oneline v2.11.3..v2.11.4 | colrm 1 12 | sed 's/\] \[/][/' 
| perl -p -e 's/^\s+//' | sort
+PREVIOUS_VERSION=3.0.3
+VERSION_WITHOUT_RC=3.0.4
+git log --reverse  --oneline v$PREVIOUS_VERSION..v$VERSION_WITHOUT_RC | colrm 
1 12 | sed 's/\] \[/][/' | perl -p -e 's/^\s+//' | awk -F ']' '{
+    if ($1 ~ /^\[/) {
+        print $1 "]" $2, $0
+    } else {
+        print "[zzz]", $0
+    }
+}' | sort | cut -d ' ' -f2- | sed 
's/\(#\([0-9]\+\)\)/[#\2](https:\/\/github.com\/apache\/pulsar\/pull\/\2)/g' | 
sed 's/^/- /'
 ```
 
 Alternatively using "gh pr list"

Reply via email to