only purposefully show PR title on PR push events
This commit is contained in:
parent
a5acf0e3aa
commit
1400fe5ce4
1 changed files with 5 additions and 3 deletions
|
@ -275,7 +275,6 @@ class GitHub(object):
|
|||
author = utils.irc.bold(data["pull_request"]["user"]["login"])
|
||||
number = utils.irc.color("#%s" % data["pull_request"]["number"],
|
||||
colors.COLOR_ID)
|
||||
number += " (%s)" % data["pull_request"]["title"]
|
||||
identifier = "%s by %s" % (number, author)
|
||||
|
||||
action = data["action"]
|
||||
|
@ -314,8 +313,11 @@ class GitHub(object):
|
|||
data["before"], data["after"])
|
||||
single_url = PR_COMMIT_URL % (full_name, raw_number, "%s")
|
||||
if new_commits:
|
||||
outputs = self._format_push(identifier, author, new_commits,
|
||||
False, single_url, range_url)
|
||||
pr_identifier = "%s (%s)" % (
|
||||
number, data["pull_request"]["title"])
|
||||
outputs = self._format_push(pr_identifier, author,
|
||||
new_commits, False, single_url, range_url)
|
||||
|
||||
for i, output in enumerate(outputs):
|
||||
outputs[i] = "[PR] %s" % output
|
||||
return outputs
|
||||
|
|
Loading…
Reference in a new issue