Skip to content

Commit 978aec0

Browse files
committed
feat(config): update style instead of overwrite
#37
1 parent c37b011 commit 978aec0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

commitizen/cz/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import Optional, List, Tuple
22
from abc import ABCMeta, abstractmethod
33

4-
from prompt_toolkit.styles import Style
4+
from prompt_toolkit.styles import merge_styles, Style
55

66

77
class BaseCommitizen(metaclass=ABCMeta):
@@ -35,7 +35,7 @@ def message(self, answers: dict) -> str:
3535

3636
@property
3737
def style(self):
38-
return Style(self.config["style"])
38+
return merge_styles(BaseCommitizen.DEFAULT_STYLE_CONFIG, Style(self.config["style"]))
3939

4040
def example(self) -> str:
4141
"""Example of the commit message."""

0 commit comments

Comments
 (0)