1
0
mirror of https://github.com/taigaio/taiga-back synced 2025-10-06 00:02:52 +02:00

Issue#4995 Fix problems with multiline commits in the webhooks

This commit is contained in:
Jesús Espino
2017-03-09 09:30:03 +01:00
parent ad60ac2235
commit f390404b98
5 changed files with 8 additions and 4 deletions

View File

@@ -81,7 +81,8 @@ class PushEventHook(BaseGitHubEventHook, BasePushEventHook):
"user_url": github_user.get('html_url', None),
"commit_id": commit.get("id", None),
"commit_url": commit.get("url", None),
"commit_message": commit.get("message", None),
"commit_message": commit.get("message").strip(),
"commit_short_message": commit.get("message").split("\n")[0].strip(),
})
return result