#!/usr/bin/env sh
# . "$(dirname -- "$0")/_/husky.sh"

# npx commitlint --edit $1
# message="$(cat $1)"
# echo "$message"
# a=($(echo "$message" | tr ':' '\n'))
# echo "${a[0]}"
# if [ "${a[0]}" = "feat" ];
# then
#     npm version --commit-hooks false --no-git-tag-version minor
# else
#     npm version --commit-hooks false --no-git-tag-version patch
# fi
# git add .
# git commit -m "$message" --no-verify