diff --git a/webhook_server/libs/pull_request_handler.py b/webhook_server/libs/pull_request_handler.py index d9539d70..58cc374f 100644 --- a/webhook_server/libs/pull_request_handler.py +++ b/webhook_server/libs/pull_request_handler.py @@ -62,10 +62,10 @@ async def process_pull_request_webhook_data(self, pull_request: PullRequest) -> if hook_action == "edited": await self.set_wip_label_based_on_title(pull_request=pull_request) - if hook_action in ("opened", "reopened"): + if hook_action in ("opened", "reopened", "ready_for_review"): tasks = [] - if hook_action == "opened": + if hook_action in ("opened", "ready_for_review"): welcome_msg = self._prepare_welcome_comment() tasks.append(asyncio.to_thread(pull_request.create_issue_comment, body=welcome_msg))