Skip to content

Commit 6f1702c

Browse files
committed
fix: improve the error message
1 parent a85fc34 commit 6f1702c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

check_branch_name.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ green='\033[0;32m'
1212
red='\033[0;31m'
1313
clear='\033[0m'
1414

15-
message="❌❌❌❌ There is something wrong with your branch name $local_branch_name.\nBranch names in this project must adhere to the format specified in the CONTRIBUTING guide.\nYour commit will be rejected. You should rename your branch to a valid name and try again"
15+
contributing_link="\e]8;;/CONTRIBUTING.md\aCONTRIBUTING\e]8;;\a"
16+
message="❌❌❌❌ Error: The branch name $local_branch_name does not adhere to the project guidelines.\nPlease refer to the $contributing_link guide for the correct format.\nYour commit will be rejected. Rename your branch to a valid name and try again."
1617

1718
if [[ ! $local_branch_name =~ $valid_branch_regex ]]; then
1819
echo -e "${red}$message${clear}"

0 commit comments

Comments
 (0)