From fbc102dbd38cd4a2b9859a65378cb2a399adf97b Mon Sep 17 00:00:00 2001 From: Kurnianto Trilaksono Date: Wed, 27 Mar 2024 00:15:00 +0800 Subject: [PATCH] add change counter --- releasing/check-release-helper.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/releasing/check-release-helper.sh b/releasing/check-release-helper.sh index bcac82eec..d902d3fe7 100755 --- a/releasing/check-release-helper.sh +++ b/releasing/check-release-helper.sh @@ -7,6 +7,8 @@ declare rc=0 git log $(git describe --tags --abbrev=0)..HEAD --oneline | tee /tmp/release-changelogs.txt +count=$(cat /tmp/release-changelogs.txt | wc -l) + if [[ $(cat /tmp/release-changelogs.txt | grep fix) || $(cat /tmp/release-changelogs.txt | grep patch) || $(cat /tmp/release-changelogs.txt | grep chore) ]]; then PATCH=true fi @@ -30,7 +32,7 @@ fi echo -e "\n" echo -e "=================================================================================" - +echo "Change counter: $(echo $count | tr -s ' ')" if [[ $MAJOR == false && $MINOR == false ]]; then echo "Recommended release type: patch" elif [[ $MAJOR == false && $MINOR == true ]]; then