diff --git a/lib/onebox/engine/github_pull_request_onebox.rb b/lib/onebox/engine/github_pull_request_onebox.rb index 403c62f4b2c..1ef23815cc9 100644 --- a/lib/onebox/engine/github_pull_request_onebox.rb +++ b/lib/onebox/engine/github_pull_request_onebox.rb @@ -40,7 +40,7 @@ module Onebox result['body'], result['excerpt'] = compute_body(result['body']) if result['commit'] = load_commit(link) - result['body'], result['excerpt'] = compute_body(result['commit']['body']) + result['body'], result['excerpt'] = compute_body(result['commit']['commit']['message'].lines[1..].join) elsif result['comment'] = load_comment(link) result['body'], result['excerpt'] = compute_body(result['comment']['body']) elsif result['discussion'] = load_review(link) diff --git a/lib/onebox/templates/githubpullrequest.mustache b/lib/onebox/templates/githubpullrequest.mustache index 8b0ee6378a7..5868ba2e823 100644 --- a/lib/onebox/templates/githubpullrequest.mustache +++ b/lib/onebox/templates/githubpullrequest.mustache @@ -26,7 +26,7 @@