Skip to content

Commit

Permalink
Bug 1073409 - Only display first line of each commit message
Browse files Browse the repository at this point in the history
To make the list of commit messages shown for each push less cluttered.
In the future, bug 1061283 will change the API so that there are
separate fields for the first line and full comment message strings, so
at that point we'll switch to using those instead.
  • Loading branch information
Ed Morley committed Feb 14, 2015
1 parent 64aafb8 commit 25a2688
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/js/directives/clonejobs.js
Expand Up @@ -330,7 +330,8 @@ treeherder.directive('thCloneJobs', [
revision.email = userTokens[1];
}
revision.name = userTokens[0].trim();
revision.escaped_comment = _.escape(revision.comments);
// Only use the first line of the full commit message.
revision.escaped_comment = _.escape(revision.comments.split('\n')[0]);
revision.escaped_comment_linkified = linkifyBugsFilter(revision.escaped_comment);
revisionHtml = revisionInterpolator(revision);
ulEl.append(revisionHtml);
Expand Down

0 comments on commit 25a2688

Please sign in to comment.