diff options
| author | 2018-11-17 20:33:23 +0000 | |
|---|---|---|
| committer | 2018-11-17 20:33:23 +0000 | |
| commit | 9f086d56a4cb30e35e59a0e5f8b6b591069902c7 (patch) | |
| tree | 516df8c708b2a4bb27c8733bd3b8b759266251e0 /modules | |
| parent | Minor code styling change in urils.irc (diff) | |
| signature | ||
Only show first line of commit message
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/github.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/github.py b/modules/github.py index 76eb6b7d..1de730fa 100644 --- a/modules/github.py +++ b/modules/github.py @@ -86,8 +86,7 @@ class Module(ModuleManager.BaseModule): if len(data["commits"]) <= 3: for commit in data["commits"]: id = self._short_hash(commit["id"]) - message = commit["message"].split("\n") - message = "".join(line.strip() for line in message) + message = commit["message"].split("\n")[0].strip() author = commit["author"]["name"] or commit["author"]["login"] author = utils.irc.bold(author) url = COMMIT_URL % (full_name, id) |
