Skip to content

Commit

Permalink
Update "Unreleased" diff URL when updating CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjackson committed Feb 9, 2025
1 parent 139e693 commit 14ed4d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build_utils/bump_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ def bump_version(blocks: list[Block], tag: str) -> None:
blocks[1].content = "\n\n".join(
[txt for txt in (blocks[0].content, blocks[1].content) if txt]
)

# Update "Unreleased" section
blocks[0].content = ""
blocks[0].previous_tag = tag


def tag_to_header(tag: str, previous_tag: str) -> str:
Expand Down

0 comments on commit 14ed4d3

Please sign in to comment.