From 423e965c884068b86c2da441dafa653136c8a3bd Mon Sep 17 00:00:00 2001 From: David Cermak Date: Thu, 16 Mar 2023 20:09:17 +0100 Subject: [PATCH] fix(common): Changelog to correctly pick references Also added .cz config for modem components --- ci/changelog.py | 2 +- components/esp_modem/.cz.yaml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 components/esp_modem/.cz.yaml diff --git a/ci/changelog.py b/ci/changelog.py index d4f42471d..e51e017e9 100644 --- a/ci/changelog.py +++ b/ci/changelog.py @@ -47,7 +47,7 @@ def main(): details = '[{}](https://github.com/espressif/esp-protocols/commit/{})'.format(commit, commit) msg_details = git.show('-s', commit, _tty_out=False) # check references - if any(str(msg_details) in s for s in ['esp-protocols/issues', 'BREAKING CHANGE', 'MAJOR CHANGE']): + if any(s in str(msg_details) for s in ['esp-protocols/issues', 'BREAKING CHANGE', 'MAJOR CHANGE']): # Closes closes = re.findall(r'Closes ([^\d]+/(\d+))', str(msg_details), re.MULTILINE) if closes and closes[0] is not None: diff --git a/components/esp_modem/.cz.yaml b/components/esp_modem/.cz.yaml new file mode 100644 index 000000000..0105359a5 --- /dev/null +++ b/components/esp_modem/.cz.yaml @@ -0,0 +1,8 @@ +--- +commitizen: + bump_message: 'bump(modem): $current_version -> $new_version' + pre_bump_hooks: python ../../ci/changelog.py esp_modem + tag_format: modem-v$version + version: 0.1.28 + version_files: + - idf_component.yml