From 287b4c954dddfaaf0a66af387676ea438cc80e61 Mon Sep 17 00:00:00 2001 From: Jon Lockwood Date: Wed, 4 Aug 2021 11:50:41 +0930 Subject: [PATCH] feat(gitlab_release): Include code refactor as part of the changelog #1 --- gitlab_release/python-module/cz_nfc/cz_nfc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitlab_release/python-module/cz_nfc/cz_nfc.py b/gitlab_release/python-module/cz_nfc/cz_nfc.py index 721be3b..f8b62d6 100755 --- a/gitlab_release/python-module/cz_nfc/cz_nfc.py +++ b/gitlab_release/python-module/cz_nfc/cz_nfc.py @@ -9,7 +9,7 @@ class nfc_cz(BaseCommitizen): bump_pattern = r"^(break|new|fix|feat|hotfix|ci|docs)" bump_map = {"break": "MAJOR", "new": "MINOR", "feat": "MINOR","fix": "PATCH", "hotfix": "PATCH", "ci": "PATCH", "docs": "PATCH"} - changelog_pattern = "^(break|new|fix|feat|hotfix|ci|docs)" + changelog_pattern = "^(break|new|fix|feat|hotfix|refactor|ci|docs)" change_type_order = ["BREAKING CHANGE", "feat", "fix", "refactor", "perf", "docs", "ci"] change_type_map = { "feat": "Features", @@ -20,7 +20,7 @@ class nfc_cz(BaseCommitizen): "ci": "Continious Integration" } - commit_parser = r"^(?Pfeat|fix|refactor|perf|BREAKING CHANGE|ci|docs)(?:\((?P[^()\r\n]*)\)|\()?(?P!)?:\s(?P.*)?" + commit_parser = r"^(?Pfeat|fix|refactor|perf|BREAKING CHANGE|refactor|ci|docs)(?:\((?P[^()\r\n]*)\)|\()?(?P!)?:\s(?P.*)?" def changelog_message_builder_hook(self, parsed_message: dict, commit: git.GitCommit) -> dict: