Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9859 from mshriver/fix-release-missing-labels
Browse files Browse the repository at this point in the history
[1LP][RFR] Fix click.echo calls in release script
  • Loading branch information
mshriver authored Jan 21, 2020
2 parents 6c8cbe9 + 28542dc commit 912d31f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cfme/scripting/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ def get_prs(release, old_release, gh):
pr_nums_without_label.append(pr.number)

if pr_nums_without_label:
click.echo(
"ERROR: The following PRs don't have any of recognized labels: \n",
"\n".join(pr_nums_without_label),
)
click.echo("Recognized labels:", ", ".join(VALID_LABELS))
pr_list = '\n'.join(str(p) for p in pr_nums_without_label)
click.echo(f'The following PRs are missing correct labels:\n{pr_list}',
err=True)
label_list = ', '.join(VALID_LABELS)
click.echo(f"Recognized labels:\n {label_list}")
sys.exit(1)
return prs

Expand Down

0 comments on commit 912d31f

Please sign in to comment.