Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assign commits to versions following their commit graph (fixes #70) #72

Merged
merged 20 commits into from
Mar 14, 2024
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/git_changelog/build.py
Co-authored-by: Timothée Mazzucotelli <dev@pawamoy.fr>
  • Loading branch information
chme and pawamoy committed Mar 13, 2024
commit 85c04fa06cf6a5f975c49cc79d6da775c7855b5a
2 changes: 1 addition & 1 deletion src/git_changelog/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def _assign_previous_versions(self) -> None:
next_commits = version.commits[0].parent_commits # Always new: we can mutate it.
previous_semver: SemverVersion | None = None
previous_version = ""
while len(next_commits) > 0:
while next_commits:
next_commit = next_commits.pop(0)
if next_commit.tag:
semver, _ = parse_version(next_commit.tag)
Expand Down
Loading