mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-18 02:01:29 +00:00
add change counter
This commit is contained in:
@@ -7,6 +7,8 @@ declare rc=0
|
|||||||
|
|
||||||
git log $(git describe --tags --abbrev=0)..HEAD --oneline | tee /tmp/release-changelogs.txt
|
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
|
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
|
PATCH=true
|
||||||
fi
|
fi
|
||||||
@@ -30,7 +32,7 @@ fi
|
|||||||
|
|
||||||
echo -e "\n"
|
echo -e "\n"
|
||||||
echo -e "================================================================================="
|
echo -e "================================================================================="
|
||||||
|
echo "Change counter: $(echo $count | tr -s ' ')"
|
||||||
if [[ $MAJOR == false && $MINOR == false ]]; then
|
if [[ $MAJOR == false && $MINOR == false ]]; then
|
||||||
echo "Recommended release type: patch"
|
echo "Recommended release type: patch"
|
||||||
elif [[ $MAJOR == false && $MINOR == true ]]; then
|
elif [[ $MAJOR == false && $MINOR == true ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user