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

Skip "First release" entry #10

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
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
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
Loading