Releasing new design #161
@ -5,15 +5,15 @@ commit_message=$(cat "$1")
|
|||||||
|
|
||||||
if (echo "$commit_message" | grep -Eq "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([a-z0-9 \-]+\))?!?: .+$") then
|
if (echo "$commit_message" | grep -Eq "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([a-z0-9 \-]+\))?!?: .+$") then
|
||||||
tput setaf 2;
|
tput setaf 2;
|
||||||
echo -e "${GREEN} ✔ Commit message meets Conventional Commit standards"
|
echo "✔ Commit message meets Conventional Commit standards"
|
||||||
tput sgr0;
|
tput sgr0;
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tput setaf 1;
|
tput setaf 1;
|
||||||
echo -e "${RED}❌ Commit message does not meet the Conventional Commit standard!"
|
echo "❌ Commit message does not meet the Conventional Commit standard!"
|
||||||
tput sgr0;
|
tput sgr0;
|
||||||
echo "An example of a valid message is:"
|
echo "An example of a valid message is:"
|
||||||
echo " feat(login): add the 'remember me' button"
|
echo " feat(login): add the 'remember me' button"
|
||||||
echo "ℹ More details at: https://www.conventionalcommits.org/en/v1.0.0/#summary"
|
echo "📝 More details at: https://www.conventionalcommits.org/en/v1.0.0/#summary"
|
||||||
exit 1
|
exit 1
|
Loading…
Reference in New Issue
Block a user