From 9bd1c57bb62ba0e0cb4cf814807801eeb6c38c9b Mon Sep 17 00:00:00 2001 From: Meni Yakove Date: Mon, 19 May 2025 17:54:14 +0300 Subject: [PATCH] Start process PR once it is ready_for_review --- webhook_server/libs/pull_request_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))