Skip to content

Commit fbc102d

Browse files
committed
add change counter
1 parent a7de0cc commit fbc102d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

releasing/check-release-helper.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ declare rc=0
77

88
git log $(git describe --tags --abbrev=0)..HEAD --oneline | tee /tmp/release-changelogs.txt
99

10+
count=$(cat /tmp/release-changelogs.txt | wc -l)
11+
1012
if [[ $(cat /tmp/release-changelogs.txt | grep fix) || $(cat /tmp/release-changelogs.txt | grep patch) || $(cat /tmp/release-changelogs.txt | grep chore) ]]; then
1113
PATCH=true
1214
fi
@@ -30,7 +32,7 @@ fi
3032

3133
echo -e "\n"
3234
echo -e "================================================================================="
33-
35+
echo "Change counter: $(echo $count | tr -s ' ')"
3436
if [[ $MAJOR == false && $MINOR == false ]]; then
3537
echo "Recommended release type: patch"
3638
elif [[ $MAJOR == false && $MINOR == true ]]; then

0 commit comments

Comments
 (0)