From 5eb5739f03561007b0fbcd234af0ef5dc3734ca8 Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Tue, 5 Mar 2024 00:19:52 +0100 Subject: [PATCH] Don't assign reviewers to closed PRs --- ryujinx_mako/commands/update_reviewers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ryujinx_mako/commands/update_reviewers.py b/ryujinx_mako/commands/update_reviewers.py index 612e9ba..2a0e048 100644 --- a/ryujinx_mako/commands/update_reviewers.py +++ b/ryujinx_mako/commands/update_reviewers.py @@ -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: