#!/usr/bin/env bash read -r msg if [[ $msg = *"BREAKING CHANGE:"* ]]; then ./update-version.sh MAJOR fi summary=$(echo "$msg" | head -1) type=$(cut -d':' -f1 <<< "$summary") if [[ $type = *"!"* ]]; then ./version-update.sh MAJOR fi if [[ $type = "feat" ]]; then ./version-update.sh MINOR else echo "last commit message does not indicate a base version update, skipping" fi