aboutsummaryrefslogtreecommitdiff
path: root/modules/github.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-10-06 15:42:39 +0100
committerGravatar jesopo2018-10-06 15:42:57 +0100
commit0a609ca6957f51871144dae262ad8f8b04cdb8d8 (patch)
treeac0dce3ab78c4cbc3bf31493e45022b8cb73caa0 /modules/github.py
parentAdd a way to track non-IRC sockets within the main epoll loop; use this for a (diff)
signature
Strip/replace \n from git commit messages in modules/github.py
Diffstat (limited to 'modules/github.py')
-rw-r--r--modules/github.py6
1 files changed, 5 insertions, 1 deletions
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"])