From 9aed5ba38bfa1f97d981e6fd4fb5941f66865bc4 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Thu, 1 Nov 2012 16:43:43 -0700 Subject: [PATCH] Add change number to DocImpact email subject. It is hard to filter the DocImpact emails using the subject as there is little change specific information added to the subject. Correct this by adding the change number to the subject line. Change-Id: I8f852184090a517852d57a2f0db34421f8a7ddb5 Reviewed-on: https://review.openstack.org/15246 Reviewed-by: Anne Gentle Reviewed-by: Tom Fifield Reviewed-by: James E. Blair Reviewed-by: Jeremy Stanley Approved: Clark Boylan Reviewed-by: Clark Boylan Tested-by: Jenkins --- notify_doc_impact.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notify_doc_impact.py b/notify_doc_impact.py index 1d312ae..54e69bf 100755 --- a/notify_doc_impact.py +++ b/notify_doc_impact.py @@ -39,7 +39,8 @@ def process_impact(git_log, args): """Notify doc team of doc impact""" email_content = EMAIL_TEMPLATE % (args.change_url, git_log) msg = MIMEText(email_content) - msg['Subject'] = '[%s] DocImpact review request' % args.project + msg['Subject'] = '[%s] DocImpact review request change %s' % \ + (args.project, args.change) msg['From'] = 'gerrit2@review.openstack.org' msg['To'] = DEST_ADDRESS