Skip to content

Commit

Permalink
Improve Milestone description when created
Browse files Browse the repository at this point in the history
Some minor improvements to create a more complete and informative
Milestone description when creating a new Milestone.
  • Loading branch information
marcusburghardt committed Jan 30, 2024
1 parent 60e5481 commit d5e55cc
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions utils/release_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,15 @@ def create_repo_milestone(repo, name) -> None:
latest_release = get_latest_release(repo)
estimated_release_date = get_next_release_date(latest_release.published_at)
if get_confirmation(f'Are you sure about creating the "{name}" milestone?'):
future_release_date = get_next_release_date(estimated_release_date)
future_stabilization_date = get_next_stabilization_date(future_release_date)
formatted_date_stabilization = get_date_for_message(future_stabilization_date)
milestone_description = (
f'Milestone for the release {name}'
f'Stabilization phase starts on {formatted_date_stabilization}')
try:
repo.create_milestone(
title=name, description=f'Milestone for the release {name}',
due_on=estimated_release_date)
title=name, description=milestone_description, due_on=estimated_release_date)
except Exception as e:
print(f'Error: {e}')
exit(1)
Expand Down

0 comments on commit d5e55cc

Please sign in to comment.