explicitly say when an issue/PR was renamed

closes #209
This commit is contained in:
jesopo 2019-11-25 12:01:33 +00:00
parent 76286e2bd0
commit 531bc65889

View file

@ -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"])