mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-06-26 18:01:34 +02:00
fix(common): Changelog to correctly pick references
Also added .cz config for modem components
This commit is contained in:
@ -47,7 +47,7 @@ def main():
|
|||||||
details = '[{}](https://github.com/espressif/esp-protocols/commit/{})'.format(commit, commit)
|
details = '[{}](https://github.com/espressif/esp-protocols/commit/{})'.format(commit, commit)
|
||||||
msg_details = git.show('-s', commit, _tty_out=False)
|
msg_details = git.show('-s', commit, _tty_out=False)
|
||||||
# check references
|
# 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 <issue>
|
# Closes <issue>
|
||||||
closes = re.findall(r'Closes ([^\d]+/(\d+))', str(msg_details), re.MULTILINE)
|
closes = re.findall(r'Closes ([^\d]+/(\d+))', str(msg_details), re.MULTILINE)
|
||||||
if closes and closes[0] is not None:
|
if closes and closes[0] is not None:
|
||||||
|
8
components/esp_modem/.cz.yaml
Normal file
8
components/esp_modem/.cz.yaml
Normal file
@ -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
|
Reference in New Issue
Block a user