My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 693: Configurable mail notifications subject line
1 person starred this issue and may be notified of changes. Back to list
Status:  Duplicate
Merged:  issue 311
Owner:  ----
Closed:  Aug 2010


Sign in to add a comment
 
Reported by di...@google.com, Aug 26, 2010
In our setup we have long repository and branch names which with the default Gerrit subject line formatting eats up most of the line length displayed by say, Gmail. This makes the subject useless and can't read the summary of the Git commit in them.

Would be nice to have a configuration parameter to format the mail notification subjects. Something like this (for the current default layout):
[mail]
  subject_format = "Change %(short_change_id)s: (%(repository)s) %(branch)s: %(summary)s

In our case I would change it to not display the Change value (nobody cares about it, they all open the mail and click on the link if they need to see the code) and possibly put the project/branch values at the end of the subject line. An alternative for us, since we are organizing branches like "subsystem/branchname" would be to have some configurable way (regex replacement syntax?) to transform some of those placeholder values (so instead of displaying "net/foo/bar" to display just "net"). Something like this maybe:

[mail]
  subject_format = "(%(repository)s) %(branch)s: %(summary)s
  repository_transform = "s,^kernel/,,"
  branch_transform = "s,^([^/]+),\1,"

Thanks!
Aug 26, 2010
#1 nas...@chromium.org
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 311
Sign in to add a comment

Powered by Google Project Hosting