Skip to content

Commit 7c8568b

Browse files
committed
Verify that the issue is still open
1 parent 3253891 commit 7c8568b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Service/TaskHandler/SuggestReviewerHandler.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ public function handle(Task $task): void
4848
return;
4949
}
5050

51+
$issue = $this->issueApi->show($repository, $task->getNumber());
52+
if ('open' !== $issue['state']) {
53+
return;
54+
}
55+
5156
if ($this->issueApi->hasActivity($repository, $task->getNumber())) {
5257
return;
5358
}

0 commit comments

Comments
 (0)