Strip/replace \n from git commit messages in modules/github.py
This commit is contained in:
parent
0794a5173a
commit
0a609ca695
1 changed files with 5 additions and 1 deletions
|
@ -18,7 +18,11 @@ class Module(ModuleManager.BaseModule):
|
|||
|
||||
for commit in data["commits"]:
|
||||
id = commit["id"]
|
||||
message = commit["message"]
|
||||
|
||||
message = commit["message"].split("\n")
|
||||
message = [line.strip() for line in message]
|
||||
message = " ".join(message)
|
||||
|
||||
author = "%s <%s>" % (commit["author"]["username"],
|
||||
commit["author"]["email"])
|
||||
modified_count = len(commit["modified"])
|
||||
|
|
Loading…
Reference in a new issue