mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[fix] was display dict, not name
This commit is contained in:
parent
caa7195b25
commit
da18aa9788
1 changed files with 2 additions and 2 deletions
|
@ -177,7 +177,7 @@ async def github(request):
|
|||
notify(f"[{repository}] @{user} {action} {assigned_user} on issue #{issue_number}: {issue_title} {url}", repository=repository)
|
||||
|
||||
elif action in ("labeled", "unlabeled"):
|
||||
label = request.json["label"]
|
||||
label = request.json["label"]["name"]
|
||||
notify(f"[{repository}] @{user} {action} {label} on issue #{issue_number}: {issue_title} {url}", repository=repository)
|
||||
|
||||
elif action == "milestoned":
|
||||
|
@ -271,7 +271,7 @@ async def github(request):
|
|||
notify(f"[{repository}] @{user} {action} pull request #{pull_request_number}: {pull_request_title} {url}", repository=repository)
|
||||
|
||||
elif action in ("labeled", "unlabeled"):
|
||||
label = request.json["label"]
|
||||
label = request.json["label"]["name"]
|
||||
notify(f"[{repository}] @{user} {action} {label} on pull request #{pull_request_number}: {pull_request_title} {url}", repository=repository)
|
||||
|
||||
elif action == "closed":
|
||||
|
|
Loading…
Reference in a new issue