mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[fix] better wording
This commit is contained in:
parent
82d0f2ea8b
commit
e402b96039
1 changed files with 4 additions and 1 deletions
|
@ -222,6 +222,9 @@ async def github(request):
|
||||||
if len(comment) > 120:
|
if len(comment) > 120:
|
||||||
comment = comment[:120] + "..."
|
comment = comment[:120] + "..."
|
||||||
|
|
||||||
|
if action == "created":
|
||||||
|
notify(f"[{repository}] @{user} commented on pull request #{pull_request_number} {pull_request_title}: {comment} {url}", repository=repository)
|
||||||
|
else:
|
||||||
notify(f"[{repository}] @{user} {action} a comment on pull request #{pull_request_number} {pull_request_title}: {comment} {url}", repository=repository)
|
notify(f"[{repository}] @{user} {action} a comment on pull request #{pull_request_number} {pull_request_title}: {comment} {url}", repository=repository)
|
||||||
|
|
||||||
# https://developer.github.com/v3/activity/events/types/#pullrequestreviewevent
|
# https://developer.github.com/v3/activity/events/types/#pullrequestreviewevent
|
||||||
|
|
Loading…
Reference in a new issue