|
Loading...
|
repo-discuss@googlegroups.com
[Prev] Thread [Next] | [Prev] Date [Next]
Re: Change e-mail subject to indicate state changes. Bob Foerster Sat Feb 18 14:00:05 2012
The last line wasn't intended to be wrapped (though I don't know if
that will cause problems).
You can grab the properly formatted file here: https://gist.github.com/1861014
On Feb 18, 7:46 am, Bob Foerster <[EMAIL PROTECTED]> wrote:
> I put the following into gerrit/etc/mail/ChangeSubject.vm. It's been well
> received here.
>
> ## The ChangeSubject.vm template will determine the contents of the email
> ## subject line for ALL emails related to changes.
> ##
> #macro(elipses $length $str)
> #if($str.length() > $length)${str.substring(0,$length)}...#else$str#end
> #end
> #if( $messageClass == "comment" )
> #set( $subject_prefix = "Comments" )
> #elseif( $messageClass == "merged" )
> #set( $subject_prefix = "Merged" )
> #elseif( $messageClass == "newchange" )
> #set( $subject_prefix = "Review Request" )
> #elseif( $messageClass == "newpatchset" )
> #set( $subject_prefix = "New Patchset" )
> #elseif( $messageClass == "abandon" )
> #set( $subject_prefix = "Abandoned" )
> #elseif( $messageClass == "merge-failed" )
> #set( $subject_prefix = "Merge Failed" )
> #else
> #set( $subject_prefix = "" )
> #end
> $subject_prefix - $projectName.replaceAll('/.*/',
> '...')[$branch.shortName]: #elipses(60, $change.subject)
--
To unsubscribe, email [EMAIL PROTECTED]
More info at http://groups.google.com/group/repo-discuss?hl=en
- Change e-mail subject to indicate state changes. Trevor Vaughan 2012/02/17
- Re: Change e-mail subject to indicate state changes. Martin Fick 2012/02/17
- Re: Change e-mail subject to indicate state changes. Trevor Vaughan 2012/02/17
- Re: Change e-mail subject to indicate state changes. Martin Fick 2012/02/17
- Re: Change e-mail subject to indicate state changes. Nasser Grainawi 2012/02/17
- Re: Change e-mail subject to indicate state changes. Bob Foerster 2012/02/18
- Re: Change e-mail subject to indicate state changes. Bob Foerster 2012/02/18 <=
- Re: Change e-mail subject to indicate state changes. Trevor Vaughan 2012/02/20