From 43153110e6ccc2fff57950b2ce0c92e9f849bbd9 Mon Sep 17 00:00:00 2001 From: Thierry Carrez Date: Wed, 19 Oct 2011 15:02:57 +0200 Subject: [PATCH] Include branch name in email notification subject Include branch name in email notification subject, and shorten the subject. Fixes bug 859620. Change-Id: I9eea5e051f71918eb417e620749b55eb73c9fc40 --- modules/gerrit/files/change-merged | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/gerrit/files/change-merged b/modules/gerrit/files/change-merged index 9c8c6c4438..c2bc7cf161 100755 --- a/modules/gerrit/files/change-merged +++ b/modules/gerrit/files/change-merged @@ -129,7 +129,8 @@ Branch: %s from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase msg = MIMEMultipart(_subtype='signed',protocol='application/pgp-signature') - msg['Subject'] = 'A change has been merged to %s' % project + short_project = project.split("/")[-1] + msg['Subject'] = 'Fix merged to %s (%s)' % (short_project, branch) msg['From'] = FROM_ADDRESS msg['To'] = to_address