You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bin/index.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -303,7 +303,7 @@ program
303
303
console.log(chalk.green("\ngtg display:\n"));
304
304
console.log(
305
305
`Use this to view the suggested branch name and commit title. You can also edit the suggested text based on your preference. This command should be run after ${chalk.yellow(
Copy file name to clipboardExpand all lines: lib/inquirer.js
+14-11Lines changed: 14 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -108,15 +108,11 @@ module.exports = {
108
108
])
109
109
.then((ans2)=>{
110
110
varemo=true;
111
-
if(ans2["emojis"]==="y"||ans2["emojis"]==="Y"){
111
+
if(ans2["emojis"]==="y"||"Y"){
112
112
console.log(
113
113
"\nWe have an awesome set of emojis in the .gitgo file which will be suggested to you in the commit messages.\n"
114
114
);
115
-
}elseif(
116
-
ans2["emojis"]==="n"||
117
-
ans2["emojis"]==="N"||
118
-
ans2["emojis"]===""
119
-
){
115
+
}elseif(ans2["emojis"]==="n"||"N"||""){
120
116
emo=false;
121
117
}else{
122
118
console.log(
@@ -143,7 +139,7 @@ module.exports = {
143
139
});
144
140
console.log(
145
141
`\nSettings for your repo have been stored. Run ${chalk.yellow(
146
-
"gg start"
142
+
"gtg start"
147
143
)} before working on an issue to get the branch name and commit title automatically. If you would like to change any settings manually, please edit the .gitgo file.\n`
148
144
);
149
145
});
@@ -166,18 +162,25 @@ module.exports = {
166
162
// expects issue number as response
167
163
type: "string",
168
164
message:
169
-
"Would you be using emojis in your commit messages?(y/n)",
165
+
"Would you be using emojis in your commit messages?(y/N)",
170
166
name: "emojis",
171
167
},
172
168
])
173
169
.then((ans2)=>{
174
170
varemo=true;
175
-
if(ans2["emojis"]==="y"){
171
+
if(ans2["emojis"]==="y"||"Y"){
176
172
console.log(
177
173
"\nWe have an awesome set of emojis in the .gitgo file which will be suggested to you in the commit messages.\n"
178
174
);
179
-
}else{
175
+
}elseif(ans2["emojis"]==="n"||"N"||""){
180
176
emo=false;
177
+
}else{
178
+
console.log(
179
+
`We don't know what you mean by "${
180
+
ans2["emojis"]
181
+
}" ${emoji.get(":cry:")}`
182
+
);
183
+
exit();
181
184
}
182
185
reader.jsonReader("./.gitgo",(err,conf)=>{
183
186
if(err){
@@ -196,7 +199,7 @@ module.exports = {
196
199
});
197
200
console.log(
198
201
`\nSettings for your repo have been stored. Run ${chalk.yellow(
199
-
"gg start"
202
+
"gtg start"
200
203
)} before working on an issue to get the branch name and commit title automatically. If you would like to change any settings manually, please edit the .gitgo file.\n`
0 commit comments