only show the first line of a comment body

This commit is contained in:
jesopo 2019-12-12 12:18:36 +00:00
parent 338936dd54
commit 10e7e30150

View file

@ -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