From 32549d1f4f1ce06d6be015721d8abc1598dba5b1 Mon Sep 17 00:00:00 2001 From: Marco Donadoni Date: Mon, 2 Dec 2024 16:44:45 +0100 Subject: [PATCH] fix(reana-dev): correctly handle missing changelog of components (#858) Fix `git-aggregate-changelog` to correctly handle components that were not released for the new REANA release. Previously, the script was aggregating the changelog of at least one version, even if it was already part of a previous release. Closes #857 --- reana/reana_dev/git.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reana/reana_dev/git.py b/reana/reana_dev/git.py index feea136e..3d7f889a 100644 --- a/reana/reana_dev/git.py +++ b/reana/reana_dev/git.py @@ -1816,7 +1816,9 @@ def get_aggregate_changelog(previous_reana_client): # noqa: D301 ) # also add current version, as it might not be tagged yet - versions_to_add.add(get_current_component_version_from_source_files(component)) + current_version = get_current_component_version_from_source_files(component) + if current_version != prev_version: + versions_to_add.add(current_version) aggregated_changelog_lines += get_formatted_changelog_lines( component, versions_to_add