Don't assign reviewers to closed PRs

This commit is contained in:
TSR Berry 2024-03-05 00:19:52 +01:00
parent 49b3dc245d
commit 5eb5739f03
No known key found for this signature in database
GPG Key ID: 52353C0A4CCA15E2
1 changed files with 4 additions and 0 deletions

View File

@ -94,6 +94,10 @@ class UpdateReviewers(GithubSubcommand):
self.logger.warning("Not assigning reviewers for draft PRs")
return 0
if pull_request.closed_at is not None or pull_request.merged_at is not None:
self.logger.warning("Not assigning reviewers for closed PRs")
return 0
pull_request_author = pull_request.user.login
for label in pull_request.labels: