chdsbd / kodiak

🔮 A bot to automatically update and merge GitHub PRs

Home Page:https://kodiakhq.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Too many blank lines before co-authors if message body is empty

gharlan opened this issue · comments

If the message body is empty (because pr description is empty or body is configured as empty) there are too many blank lines between title and co-authors.

Example commit message:

PR title (#issue)



Co-authored-by: ...

To match the GitHub docs we add two new lines before the coauthor trailers.

Screen Shot 2020-11-28 at 1 01 07 PM

It seems that GitHub adds an extra space between the commit title and body. I think we can fix the issue you've encountered by trimming any extra whitespace on merge.

#578 has been deployed which should resolve this issue. Let me know if you run into any issues.