Skip to content

Commit

Permalink
Skip "First release" entry
Browse files Browse the repository at this point in the history
since that breaks package releases.
  • Loading branch information
mvdbeek committed Feb 20, 2024
1 parent daff79e commit 623176e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions galaxy_release_util/point_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ def parse_changelog(package: Package) -> List[ChangelogItem]:
# could be bullet list or a nested section with bugfix, docs, etc
if changelog_item.tagname == "bullet_list":
for child in changelog_item.children:
changes.append(f"* {child.rawsource.strip()}")
if rawsource := child.rawsource.strip() and not rawsource.startswith("First release"):
changes.append(f"* {rawsource}")
elif changelog_item.tagname == "paragraph":
changes = changelog_item.rawsource.splitlines()
elif changelog_item.tagname == "section":
Expand All @@ -173,7 +174,8 @@ def parse_changelog(package: Package) -> List[ChangelogItem]:
changes.append(f"\n{section_delimiter}\n{kind}\n{section_delimiter}\n")
for section_changelog_item in changelog_item[1:]:
for child in section_changelog_item:
changes.append(f"* {child.rawsource.strip()}")
if rawsource := child.rawsource.strip() and not rawsource.startswith("First release"):
changes.append(f"* {rawsource}")
changelog_items.append(ChangelogItem(version=current_version, date=current_date, changes=changes))

# Filter out dev release versions without changelog,
Expand Down

0 comments on commit 623176e

Please sign in to comment.