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

asf-gitbox-commits pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-builds.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 83ae73d  Add a flag to allow skipping the changelog update
83ae73d is described below

commit 83ae73db9b3a391bccaad05bf0f72fccf6732b64
Author: Brandon Williams <[email protected]>
AuthorDate: Tue May 5 16:08:20 2026 -0500

    Add a flag to allow skipping the changelog update
    
    Patch by Rishabh Saraswat, reviewed by brandonwilliams for
    CASSANDRA-20672
---
 cassandra-release/prepare_release.sh | 25 +++++++++++++++++--------
 1 file changed, 17 insertions(+), 8 deletions(-)

diff --git a/cassandra-release/prepare_release.sh 
b/cassandra-release/prepare_release.sh
index 5b5b223..20d1fe7 100755
--- a/cassandra-release/prepare_release.sh
+++ b/cassandra-release/prepare_release.sh
@@ -47,6 +47,7 @@ verbose=0
 fake_mode=0
 only_deb=0
 only_rpm=0
+skip_changelog=0
 
 show_help()
 {
@@ -59,11 +60,12 @@ show_help()
     echo "  -f: fake mode, print any output but don't do anything (for 
debugging)"
     echo "  -d: only build the debian package"
     echo "  -r: only build the rpm package"
+    echo "  -s: skip updating debian changelog"
     echo ""
     echo "Example: $name 2.0.3"
 }
 
-while getopts ":hvfdr" opt; do
+while getopts ":hvfdrs" opt; do
     case "$opt" in
     h)
         show_help
@@ -77,6 +79,8 @@ while getopts ":hvfdr" opt; do
         ;;
     r)  only_rpm=1
         ;;
+    s)  skip_changelog=1
+        ;;
     \?)
         echo "Invalid option: -$OPTARG" >&2
         show_help
@@ -228,13 +232,18 @@ release_minor=$(echo ${release_short} | cut -d '.' -f 2)
 
 if [ $only_deb -eq 0 ] && [ $only_rpm -eq 0 ]
 then
-    echo "Update debian changelog, please correct changelog, name, and email."
-    read -n 1 -s -r -p "press any key to continue…" 1>&3 2>&4
-    echo ""
-    execute "dch -r -D unstable"
-    echo "Prepare debian changelog for $release" > "_tmp_msg_"
-    execute "git commit -F _tmp_msg_ debian/changelog"
-    execute "rm _tmp_msg_"
+    if [ $skip_changelog -eq 0 ]; then
+        echo "Update debian changelog, please correct changelog, name, and 
email."
+        read -n 1 -s -r -p "press any key to continue…" 1>&3 2>&4
+        echo ""
+        execute "dch -r -D unstable"
+        echo "Prepare debian changelog for $release" > "_tmp_msg_"
+        execute "git commit -F _tmp_msg_ debian/changelog"
+        execute "rm _tmp_msg_"
+    else
+        echo "Skipping debian changelog update." 1>&3 2>&4
+    fi
+
     head_commit=`git log --pretty=oneline -1 | cut -d " " -f 1`
     # this commit needs to be forward merged and atomic pushed (see reminders 
at bottom)
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to