From 531bc65889b81345c1d7ae2ad1e557b8fbad69ce Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 25 Nov 2019 12:01:33 +0000 Subject: explicitly say when an issue/PR was renamed closes #209 --- modules/git_webhooks/github.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py index 50c31f10..5a252c65 100644 --- a/modules/git_webhooks/github.py +++ b/modules/git_webhooks/github.py @@ -317,6 +317,8 @@ class GitHub(object): elif action == "labeled": action_desc = "labled %s as '%s'" % ( identifier, data["label"]["name"]) + elif action == "edited" and "title" in data["changes"]: + action_desc = "renamed %s" % identifier pr_title = data["pull_request"]["title"] url = self._short_url(data["pull_request"]["html_url"]) @@ -369,6 +371,8 @@ class GitHub(object): action_str = "%s %s" % (action, number) if action == "labeled": action_str = "labeled %s as '%s'" % (number, data["label"]["name"]) + elif action == "edited" and "title" in data["changes"]: + action_str = "renamed %s" % number issue_title = data["issue"]["title"] author = utils.irc.bold(data["sender"]["login"]) -- cgit v1.3.1-10-gc9f91