From 10e7e30150e7d4b59f325072a57906bbc07061dd Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 12 Dec 2019 12:18:36 +0000 Subject: [PATCH] only show the first line of a comment body --- modules/git_webhooks/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/git_webhooks/github.py b/modules/git_webhooks/github.py index bfb98c5d..3bf56cf6 100644 --- a/modules/git_webhooks/github.py +++ b/modules/git_webhooks/github.py @@ -247,7 +247,7 @@ class GitHub(object): return outputs def _comment(self, s): - s_line = utils.parse.line_normalise(s) + s = s.split("\n")[0].strip() left, right = s_line[:COMMENT_MAX], s_line[COMMENT_MAX:] if not right: return left