Skip to content

WIP: Show commit messages in issues

What does this MR do?

Displays the full, rendered commit message below "Mentioned in commit af12af" system notes on the issue page.

Are there points in the code the reviewer needs to double check?

The use of javascript is not ideal, but it's an easy way to control when and where this extra content will show while loading the data through Banzai, which seems like a much simpler initial fix than restructuring other code, perhaps right back to SystemNoteService.cross_reference, to make this data available in the note itself.

This feature may need a project option or per-issue silence button because in some situations commit messages may be long or an issue may be mentioned in passing far too much. A text collapse control that limits the block initially visible to a few lines may also help with this, at the cost of making some information less visible again.

Why was this MR needed?

The commit messages often have crucial information regarding the progress of work against an issue and other commentary of interest when reading an issue, and, although the commit titles are available in a tooltip, this information is not currently visible enough.

Screenshots (if relevant)

Screenshot_from_2016-10-03_13-23-42

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#1784 (moved)

Merge request reports