diff --git a/scripts/release_scripts/increment_version.py b/scripts/release_scripts/increment_version.py index 9d3461b0..8c6f15b2 100644 --- a/scripts/release_scripts/increment_version.py +++ b/scripts/release_scripts/increment_version.py @@ -82,8 +82,12 @@ def format_commit_message(commit_message: str) -> str: ) return f"- {commit_message}" else: - return f"- fix: {commit_message}" - + # Extract common commit types or use "other" as default + commit_types = ['feat', 'fix', 'docs', 'style', 'refactor', 'test', 'chore'] + for type_ in commit_types: + if commit_message.startswith(f"{type_}:"): + return f"- {commit_message}" + return f"- other: {commit_message}" def update_changelog(file_path: str, new_version: str, new_commits: str): """Add new version and commits to the changelog file in the correct section."""