mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
feat: handle pull_request assigned action
This commit is contained in:
parent
504f18d019
commit
5318ee4434
1 changed files with 7 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue