Skip to content

Commit

Permalink
Update release_label_validator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KsaweryZietara authored Jan 11, 2024
1 parent 0009aeb commit ddf4bb7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/python/release_label_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
latest_release_name = latest_release['name'].split(".")
new_release_name = os.getenv('NAME').split(".")
if latest_release_name[0] == new_release_name[0] and latest_release_name[1] == new_release_name[1]:
error_message = "\nThese PRs have feature label, but only the patch version has changed:" + '\n'.join([f"PR: {pr}" for pr in feature_prs])
sys.exit(error_message)
sys.exit("\nThese PRs have feature label, but only the patch version has changed:\n" + '\n'.join([f"PR: {pr}" for pr in feature_prs]))

print("\nNew name is correct")

0 comments on commit ddf4bb7

Please sign in to comment.