Skip to content

Commit

Permalink
Fixing release notes for new major releases (#43)
Browse files Browse the repository at this point in the history
Parent issue: sequentech/meta#111
  • Loading branch information
edulix authored Jun 12, 2023
2 parents 4667753 + d47127c commit 5e4e24a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions comprehensive_release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,17 +212,13 @@ def main():
verbose_print(args, f"Generated Release Notes: {release_notes_md}")

if not dry_run:
if prev_major < new_major:
branch = None
try:
branch = meta_repo.get_branch(new_release_head)
except:
verbose_print(args, "Creating new branch")
create_new_branch(meta_repo, new_release_head)
else:
branch = None
try:
branch = meta_repo.get_branch(new_release_head)
except:
verbose_print(args, "Creating new branch")
create_new_branch(meta_repo, new_release_head)
branch = meta_repo.get_branch(new_release_head)
branch = meta_repo.get_branch(new_release_head)

verbose_print(args, "Creating new release")
meta_repo.create_git_tag_and_release(
Expand Down

0 comments on commit 5e4e24a

Please sign in to comment.