Skip to content

Commit

Permalink
adjust tag operations in release suggestion (#7488)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllyW committed Apr 11, 2024
1 parent 19813e8 commit 081693f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/ci/release_version_cal.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,18 @@ def get_next_version_segment_tag():


def add_suggest_header(comment_message):
comment_message.append("## :warning: Suggestions")
comment_message.append("## :warning: Release Suggestions")


def gen_comment_message(mod, next_version, comment_message):
comment_message.append("### Module: {0}".format(mod))
comment_message.append(" - Update version to `{0}` in setup.py".format(next_version.get("version", "-")))
if next_version.get("has_preview_tag", False):
comment_message.append(' - Set `azext.isPreview` to `true` in azext_{0}/azext_metadata.json if not exists'.format(mod))
if next_version.get("preview_tag", None) == "add":
comment_message.append(' - Set `azext.isPreview` to `true` in azext_{0}/azext_metadata.json'.format(mod))
if next_version.get("preview_tag", None) == "remove":
comment_message.append(' - Remove `azext.isPreview: true` in azext_{0}/azext_metadata.json'.format(mod))
if next_version.get("exp_tag", None) == "remove":
comment_message.append(' - Remove `azext.isExperimental: true` in azext_{0}/azext_metadata.json'.format(mod))


def add_label_hint_message(comment_message):
Expand Down

0 comments on commit 081693f

Please sign in to comment.