Skip to content

Commit

Permalink
Don't assign reviewers to closed PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
TSRBerry committed Mar 4, 2024
1 parent 49b3dc2 commit 5eb5739
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ryujinx_mako/commands/update_reviewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ def update_reviewers(self, config, repo: Repository, pr_number: int) -> int:
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:
Expand Down

0 comments on commit 5eb5739

Please sign in to comment.