diff --git a/commitizen/changelog.py b/commitizen/changelog.py index 5e43e2fef9..1ccdb4e297 100644 --- a/commitizen/changelog.py +++ b/commitizen/changelog.py @@ -38,29 +38,6 @@ from commitizen.exceptions import InvalidConfigurationError from commitizen.git import GitCommit, GitTag -CATEGORIES = [ - ("fix", "fix"), - ("breaking", "BREAKING CHANGES"), - ("feat", "feat"), - ("refactor", "refactor"), - ("perf", "perf"), - ("test", "test"), - ("build", "build"), - ("ci", "ci"), - ("chore", "chore"), -] - - -def transform_change_type(change_type: str) -> str: - # TODO: Use again to parse, for this we have to wait until the maps get - # defined again. - _change_type_lower = change_type.lower() - for match_value, output in CATEGORIES: - if re.search(match_value, _change_type_lower): - return output - else: - raise ValueError(f"Could not match a change_type with {change_type}") - def get_commit_tag(commit: GitCommit, tags: List[GitTag]) -> Optional[GitTag]: return next((tag for tag in tags if tag.rev == commit.rev), None)