Don't assign reviewers to closed PRs
This commit is contained in:
parent
49b3dc245d
commit
5eb5739f03
1 changed files with 4 additions and 0 deletions
|
@ -94,6 +94,10 @@ class UpdateReviewers(GithubSubcommand):
|
||||||
self.logger.warning("Not assigning reviewers for draft PRs")
|
self.logger.warning("Not assigning reviewers for draft PRs")
|
||||||
return 0
|
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
|
pull_request_author = pull_request.user.login
|
||||||
|
|
||||||
for label in pull_request.labels:
|
for label in pull_request.labels:
|
||||||
|
|
Loading…
Reference in a new issue