Skip to content

Commit

Permalink
fix: fix detection of feature (is_minor) for angular style
Browse files Browse the repository at this point in the history
  • Loading branch information
LoicViennois committed Nov 21, 2019
1 parent 0d55c5e commit 4fbf0ee
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/git_changelog/style.py
Expand Up @@ -82,9 +82,8 @@ def parse_subject(self, commit_subject):
return dct
return {"type": "", "scope": "", "subject": commit_subject}

@staticmethod
def is_minor(commit_type):
return commit_type == "feat"
def is_minor(self, commit_type):
return commit_type == self.TYPES["feat"]

def is_major(self, commit_message):
return bool(self.BREAK_REGEX.match(commit_message))
Expand Down

0 comments on commit 4fbf0ee

Please sign in to comment.