From 5318ee44343898b41d30eaa903a1a2798306d9cd Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 18 Mar 2024 19:18:31 +0100 Subject: [PATCH] feat: handle pull_request assigned action --- server.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server.py b/server.py index 2390c16..f5b2166 100644 --- a/server.py +++ b/server.py @@ -429,6 +429,13 @@ async def github(request): repository=repository, ) + elif action == "assigned": + assigned_user = request.json["assignee"]["login"] + await notify( + f"[{repository}] @{user} {action} {assigned_user} on [pull request #{pull_request_number}]({url}): {pull_request_title}", + repository=repository, + ) + elif action in ( "review_requested", "review_request_removed",