diff --git a/check_labels.py b/check_labels.py index 103987a..c82abcc 100755 --- a/check_labels.py +++ b/check_labels.py @@ -181,8 +181,8 @@ def check_review_approvals(pull, condition, missing_approvals_label): approving_reviewers.add(review.user.login) if len(approving_reviewers) > condition[1]: print( - f"PR#{pull} has {len(approving_reviewers)}/{condition[1] + 1} approving reviewers," - f" removing label '{missing_approvals_label}'" + f"PR#{pull} has {len(approving_reviewers)}/{condition[1] + 1}" + f" approving reviewers, removing label '{missing_approvals_label}'" ) if missing_approvals_label: try: @@ -197,8 +197,8 @@ def check_review_approvals(pull, condition, missing_approvals_label): if missing_approvals_label and condition[1] > 0: print( - f"PR#{pull} has only {len(approving_reviewers)}/{condition[1] + 1} approving reviewers," - f" setting label '{missing_approvals_label}'" + f"PR#{pull} has only {len(approving_reviewers)}/{condition[1] + 1}" + f" approving reviewers, setting label '{missing_approvals_label}'" ) pull.add_to_labels(missing_approvals_label)