Auto PR: Only keep the first line of the commit message

Fixes issue highlited in #1183
This commit is contained in:
Laurent Goderre 2020-01-08 11:25:37 -05:00
parent cd046b9902
commit 60915d2eb9
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ function pr_payload() {
local body local body
local maintainers local maintainers
escaped_message="$(echo "${COMMIT_MESSAGE}" | sed -E -e "s/\"/\\\\\"/g")" escaped_message="$(echo "${COMMIT_MESSAGE}" | head -n 1 | sed -E -e "s/\"/\\\\\"/g")"
if [ -n "${PR_NUMBER}" ]; then if [ -n "${PR_NUMBER}" ]; then
body="Pull Request: ${DOCKER_SLUG}#${PR_NUMBER}" body="Pull Request: ${DOCKER_SLUG}#${PR_NUMBER}"