mirror of
https://github.com/YunoHost/webhooks.git
synced 2024-09-03 19:56:54 +02:00
[mod] better sentence for milestoning on issue/pr
This commit is contained in:
parent
46b2e8aca6
commit
d026251cae
1 changed files with 2 additions and 2 deletions
|
@ -182,7 +182,7 @@ async def github(request):
|
||||||
|
|
||||||
elif action == "milestoned":
|
elif action == "milestoned":
|
||||||
milestone = request.json["issue"]["milestone"]["title"]
|
milestone = request.json["issue"]["milestone"]["title"]
|
||||||
notify(f"[{repository}] @{user} {action} {milestone} on issue #{issue_number}: {issue_title} {url}", repository=repository)
|
notify(f"[{repository}] @{user} set {milestone} on issue #{issue_number}: {issue_title} {url}", repository=repository)
|
||||||
|
|
||||||
elif action == "demilestoned":
|
elif action == "demilestoned":
|
||||||
notify(f"[{repository}] @{user} {action} issue #{issue_number}: {issue_title} {url}", repository=repository)
|
notify(f"[{repository}] @{user} {action} issue #{issue_number}: {issue_title} {url}", repository=repository)
|
||||||
|
@ -279,7 +279,7 @@ async def github(request):
|
||||||
# super weird, this action is not supposed to be possible for pull_request :|
|
# super weird, this action is not supposed to be possible for pull_request :|
|
||||||
elif action == "milestoned":
|
elif action == "milestoned":
|
||||||
milestone = request.json["pull_request"]["milestone"]
|
milestone = request.json["pull_request"]["milestone"]
|
||||||
notify(f"[{repository}] @{user} {action} {milestone} pull_request #{pull_request_number}: {pull_request_title} {url}", repository=repository)
|
notify(f"[{repository}] @{user} set {milestone} pull request #{pull_request_number}: {pull_request_title} {url}", repository=repository)
|
||||||
|
|
||||||
# super weird, this action is not supposed to be possible for pull_request :|
|
# super weird, this action is not supposed to be possible for pull_request :|
|
||||||
elif action == "demilestoned":
|
elif action == "demilestoned":
|
||||||
|
|
Loading…
Reference in a new issue