From 4603d80b2a9e46d26bc63189e923b7f107af1805 Mon Sep 17 00:00:00 2001 From: Christian Meffert Date: Wed, 13 Mar 2024 20:17:57 +0100 Subject: [PATCH] Exttend list of next_commits instead of creating a new list --- src/git_changelog/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/git_changelog/build.py b/src/git_changelog/build.py index 7ae7bc3..741c5be 100644 --- a/src/git_changelog/build.py +++ b/src/git_changelog/build.py @@ -459,7 +459,7 @@ def _assign_previous_versions(self) -> None: previous_semver = semver previous_version = next_commit.tag else: - next_commits = next_commit.parent_commits + next_commits + next_commits.extend(next_commit.parent_commits) if not previous_version: previous_version = version.commits[-1].hash