diff options
| author | 2018-10-06 15:42:39 +0100 | |
|---|---|---|
| committer | 2018-10-06 15:42:57 +0100 | |
| commit | 0a609ca6957f51871144dae262ad8f8b04cdb8d8 (patch) | |
| tree | ac0dce3ab78c4cbc3bf31493e45022b8cb73caa0 /modules/github.py | |
| parent | Add 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.py | 6 |
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"]) |
