From 732d8ef0bba9d23c731611dbed25e2e24a8a30d2 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 13 Dec 2023 19:07:28 +0000 Subject: build: Integrate Commitizen to check commit messages and generate changelog The commit messages are checked against the Conventional Commits (https://www.conventionalcommits.org) specification, along with minor customizations (eg, capitalized header, some irrelevant commit types removed Checking messages is integrated into `tox -e lint`. Changelog generation is integrated into "tox -e changelog", which runs `cz changelog` command underneath and incrementally updates RELEASES.md. Change-Id: I86f21f6c78a166d3bb92450a027a2d7e71ce22cf Signed-off-by: Gergely Nagy --- tox.ini | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 6e51df0..419a635 100644 --- a/tox.ini +++ b/tox.ini @@ -74,3 +74,10 @@ deps = commands = sphinx-apidoc -f -o docs/source src/mlia make --directory docs html + +[testenv:changelog] +description = Generate changelog using Commitizen. +deps = + commitizen==3.13.0 +commands = + cz changelog --file-name RELEASES.md --incremental -- cgit v1.2.1