From d4fd841af269f53d4016ca0ef01f0f74eb9c459a Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 27 Jun 2019 11:27:15 +0100 Subject: Prefix PR commit outputs with "[PR] " --- modules/git_webhooks/github.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules/git_webhooks/github.py') diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py index 29893a2a..777e8ca8 100644 --- a/modules/git_webhooks/github.py +++ b/modules/git_webhooks/github.py @@ -270,8 +270,11 @@ class GitHub(object): data["before"], data["after"]) single_url = PR_COMMIT_URL % (full_name, raw_number, "%s") if new_commits: - return self._format_push(number, author, new_commits, False, - single_url, range_url) + outputs = self._format_push(number, author, new_commits, + False, single_url, range_url) + for i, output in enumerate(outputs): + outputs[i] = "[PR] %s" % output + return outputs pr_title = data["pull_request"]["title"] url = self._short_url(data["pull_request"]["html_url"]) -- cgit v1.3.1-10-gc9f91