From 27376f587ded9efc48ef98e2a61bceeb9e859e5c Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sat, 9 Mar 2024 03:27:55 +0100 Subject: [PATCH] feat: handle pull_request converted_to_draft action --- server.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server.py b/server.py index a55c8f5..b87a520 100644 --- a/server.py +++ b/server.py @@ -420,6 +420,12 @@ async def github(request): repository=repository, ) + elif action == "converted_to_draft": + await notify( + f"[{repository}] @{user} converted to draft the [pull request #{pull_request_number}]({url}): {pull_request_title}", + repository=repository, + ) + elif action in ( "review_requested", "review_request_removed",