Abort if no new reviews can be requested

This commit is contained in:
TSR Berry 2024-01-29 20:22:43 +01:00
parent 1af0a783c3
commit c1c4ae04f3
No known key found for this signature in database
GPG key ID: 52353C0A4CCA15E2

View file

@ -119,6 +119,11 @@ class UpdateReviewers(GithubSubcommand):
try:
reviewers = list(self._reviewers)
team_reviewers = list(self._team_reviewers)
if len(reviewers) == 0 and len(team_reviewers) == 0:
self.logger.info("No new reviewers to assign.")
return 0
self.logger.info(
f"Attempting to assign reviewers ({reviewers}) "
f"and team_reviewers ({team_reviewers})"