Skip to content

Commit

Permalink
fix(reana-dev): correctly handle missing changelog of components (#858)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mdonadoni committed Dec 2, 2024
1 parent b9bc602 commit 32549d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reana/reana_dev/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32549d1

Please sign in to comment.