@@ -42,11 +42,23 @@ while true; do
42
42
esac
43
43
done
44
44
45
- # Commit message section
45
+ # Commit message section
46
+ header=" "
46
47
massage=" "
47
48
if [ ! -z " $COMMENT_FLAG " ]; then
48
49
49
- printf " \n${CYAN} >>> What new 🚀 features have been added ?${RESET} \n"
50
+ printf " \n${CYAN} >>> Write a short description about this tag.${RESET} \n"
51
+ while : ; do
52
+ read -e input
53
+ if [ -z " $input " ]; then
54
+ printf " ${RED} ❌ Header can not be empty.${RESET} \n"
55
+ else
56
+ header=" $input "
57
+ break
58
+ fi
59
+ done
60
+
61
+ printf " \n${CYAN} >>> What new 🚀 features have been added (optional)?${RESET} \n"
50
62
read -e features
51
63
if [ ! -z " $features " ]; then
52
64
massage="
@@ -55,7 +67,7 @@ if [ ! -z "$COMMENT_FLAG" ]; then
55
67
"
56
68
fi
57
69
58
- printf " \n${CYAN} >>> Which 🐛 bugs have been fixed ?${RESET} \n"
70
+ printf " \n${CYAN} >>> Which 🐛 bugs have been fixed (optional) ?${RESET} \n"
59
71
read -e fixes
60
72
if [ ! -z " $fixes " ]; then
61
73
massage=" ${massage}
@@ -64,7 +76,7 @@ if [ ! -z "$COMMENT_FLAG" ]; then
64
76
"
65
77
fi
66
78
67
- printf " \n${CYAN} >>> What 🧪 tests have been added ?${RESET} \n"
79
+ printf " \n${CYAN} >>> What 🧪 tests have been added (optional) ?${RESET} \n"
68
80
read -e tests
69
81
if [ ! -z " $tests " ]; then
70
82
massage=" ${massage}
@@ -73,7 +85,7 @@ if [ ! -z "$COMMENT_FLAG" ]; then
73
85
"
74
86
fi
75
87
76
- printf " \n${CYAN} >>> 💭 Other explanations you want to add.${RESET} \n"
88
+ printf " \n${CYAN} >>> 💭 Other explanations you want to add (optional) .${RESET} \n"
77
89
read -e others
78
90
if [ ! -z " $others " ]; then
79
91
massage=" ${massage}
@@ -83,7 +95,10 @@ if [ ! -z "$COMMENT_FLAG" ]; then
83
95
fi
84
96
fi
85
97
86
- printf " \n${GREEN} v${version} \n${massage} \n${RESET} "
98
+ printf " \n${GREEN} v${version} ${header} \n${massage} \n${RESET} "
99
+ massage=" ${header}
100
+
101
+ ${massage} "
87
102
88
103
# Git tag
89
104
if [ $? == 0 ]; then
0 commit comments