From d026251cae352baf128f488f7dc8821f16b475a5 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Thu, 7 Feb 2019 15:30:50 +0100 Subject: [PATCH] [mod] better sentence for milestoning on issue/pr --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 17b20ee..72e568d 100644 --- a/server.py +++ b/server.py @@ -182,7 +182,7 @@ async def github(request): elif action == "milestoned": 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": 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 :| elif action == "milestoned": 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 :| elif action == "demilestoned":