History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CIB-1185
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Daniel Ostermeier
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Pulse

Allow trimming of commit comments to be configured in the templates.

Created: 02/Aug/07 04:51 PM   Updated: 02/Aug/07 05:15 PM
Component/s: Notifications
Affects Version/s: None
Fix Version/s: 1.2.34


 Description  « Hide
from http://forums.zutubi.com/viewtopic.php?t=967&start=0&postdays=0&postorder=asc&highlight=

Hi,

I'd like to display the full SVN commit message in the changelist display that Pulse emails out after a build. Currently it truncates the commit comment to keep it short.

I looked at the html-email.ftl file, and it seems that this truncation must happen in the @buildChangesHTML macro. Is there an option to have the macro product the full length messages (or could such an option be added)?

Thanks!

Mike

 All   Comments   Change History      Sort Order:
Daniel Ostermeier - 02/Aug/07 04:54 PM
The following method calls are now available from the macro:

renderer.transformComment(change) // currently available
renderer.transformComment(change, int trimToLength) // available in 1.2.34
renderer.transformCommentWithoutTrimming(change) // available in 1.2.34

So, Mike, what you will want to do is replace:

[@contentCell cc=renderer.transformComment(change)/]

with

[@contentCell cc=renderer.transformCommentWithoutTrimming(change)/]


Daniel Ostermeier - 02/Aug/07 04:55 PM
fixed in svn revision 3586

Daniel Ostermeier - 02/Aug/07 05:15 PM
Ok, slight update. Rather than modifying the internals of the macro as I mentioned above, I have now added the parameters to the macro itself, so to render a comment without trimming requires the following:

[@buildChangesHTML changelists=changelists trim=false/]

Alternatively, if you wish to change the trim limit, you can use the following:

[@buildChangesHTML changelists=changelists trim=true limit=50/]

The default trim limit is 60.