Prefix PR commit outputs with "[PR] "
This commit is contained in:
parent
1ef93e181f
commit
d4fd841af2
1 changed files with 5 additions and 2 deletions
|
@ -270,8 +270,11 @@ class GitHub(object):
|
||||||
data["before"], data["after"])
|
data["before"], data["after"])
|
||||||
single_url = PR_COMMIT_URL % (full_name, raw_number, "%s")
|
single_url = PR_COMMIT_URL % (full_name, raw_number, "%s")
|
||||||
if new_commits:
|
if new_commits:
|
||||||
return self._format_push(number, author, new_commits, False,
|
outputs = self._format_push(number, author, new_commits,
|
||||||
single_url, range_url)
|
False, single_url, range_url)
|
||||||
|
for i, output in enumerate(outputs):
|
||||||
|
outputs[i] = "[PR] %s" % output
|
||||||
|
return outputs
|
||||||
|
|
||||||
pr_title = data["pull_request"]["title"]
|
pr_title = data["pull_request"]["title"]
|
||||||
url = self._short_url(data["pull_request"]["html_url"])
|
url = self._short_url(data["pull_request"]["html_url"])
|
||||||
|
|
Loading…
Reference in a new issue