From 0a609ca6957f51871144dae262ad8f8b04cdb8d8 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 6 Oct 2018 15:42:39 +0100 Subject: [PATCH] Strip/replace \n from git commit messages in modules/github.py --- modules/github.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/github.py b/modules/github.py index 3e5734a7..789b8c00 100644 --- a/modules/github.py +++ b/modules/github.py @@ -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"])