Display complete commit title in Travis Builds

Current:
The commit title is limited to 50 chars and cropped on server side.

Expected:
At least 72 chars (this is the typical limit - one line in 80 chars width console, see https://preslav.me/2015/02/21/what-s-with-the-50-72-rule/). Longer titles than 72 chars should have elipsis “…” on the end and the full commit title should be display on mouse hover.

The article on the link advises exactly what Travis is doing: that commit’s title (the 1st line) should be <= 50 characters. A build list (as opposed to a build page) only shows titles.

Would this actually be helpful on its own? Tooltip text can’t be copied. I would expect the title to be visually truncated but still present in DOM in full (so it can be copied) but I don’t know if that’s possible to implement easily without breaking the layout.


FWIW, Web UI’s source code is at GitHub - travis-ci/travis-web: The Ember web client for Travis CI.

Thanks, PR submitted: https://github.com/travis-ci/travis-web/pull/2289

1 Like