@@ -157,7 +157,7 @@ def add_scope(commit_msg):
157
157
"\n What is the scope / a noun describing section of repo? (try to keep under 15 characters)"
158
158
)
159
159
)
160
- text = Ansi .b_green ( "Scope (optional): " )
160
+ text = Ansi .colour ( Ansi . fg . bright_green , "Scope (optional): " )
161
161
c_scope = prompt (ANSI (text )).strip ()
162
162
163
163
if c_scope != "" :
@@ -243,21 +243,24 @@ def add_body(commit_msg):
243
243
if IS_BREAKING_CHANGE :
244
244
Ansi .print_info (
245
245
wrap_width (
246
- "\n You must explain what has changed in this commit to cause breaking changes."
247
- "Press Esc before Enter to submit."
246
+ [
247
+ "\n Explain what has changed in this commit to cause breaking changes." ,
248
+ "Press Esc before Enter to submit." ,
249
+ ]
248
250
)
249
251
)
250
- text = Ansi .b_green ("Body (required) ┃ " )
252
+ # text = Ansi.b_green("Body (required) ┃ ")
253
+ text = Ansi .colour (Ansi .fg .bright_green , Ansi .bold , "Body ┃ " )
251
254
else :
252
255
Ansi .print_info (
253
256
wrap_width (
254
257
[
255
- "\n You may provide additional contextual information about the code changes here." ,
258
+ "\n Provide additional contextual information about the changes here." ,
256
259
"Press Esc before Enter to submit." ,
257
260
]
258
261
)
259
262
)
260
- text = Ansi .b_green ( "Body (optional) ┃ " )
263
+ text = Ansi .colour ( Ansi . fg . bright_green , "Body (optional) ┃ " )
261
264
262
265
c_body = session .prompt (ANSI (text ), validator = body_validator )
263
266
c_body = c_body .strip () # remove leading/trailing whitespace
@@ -310,7 +313,7 @@ def add_footer(commit_msg):
310
313
)
311
314
)
312
315
313
- text = Ansi .b_green ( "Footer (optional) ┃ " )
316
+ text = Ansi .colour ( Ansi . fg . bright_green , "Footer (optional) ┃ " )
314
317
session = PromptSession (
315
318
completer = FooterCompleter (),
316
319
multiline = False ,
0 commit comments