Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


Hi,

I send this patch to the list, don't know how to submit that to gerrit (since it's not the core project, but dev-tools).

Thanks
Samuel
From db232dcfc2baec8bd176e93f115c0493f4157f0d Mon Sep 17 00:00:00 2001
From: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
Date: Sat, 20 Jul 2013 14:37:39 +0200
Subject: [PATCH] Improve Gerrit Daily Digest Mail

Put the URL at the end of the line to give focus to the commit message.

Now it looks like this:
+ This is the commit message (Author, https://gerrit.libreoffice.org/1234)
---
 gerritbot/send-daily-digest | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gerritbot/send-daily-digest b/gerritbot/send-daily-digest
index 5f8d937..87899b4 100755
--- a/gerritbot/send-daily-digest
+++ b/gerritbot/send-daily-digest
@@ -27,7 +27,7 @@ def get_digest(gerrit, query):
     for line in sh.ssh(gerrit, 'gerrit query --format=JSON -- \'%s\'' % query).strip().split('\n'):
         change = json.loads(line)
         if 'url' in change.keys():
-            digest += '+ %s\n  in %s from %s\n' % (change['subject'][:73], change['url'], 
change['owner']['name'])
+            digest += '+ %s (%s, %s)\n' % (change['subject'][:73], change['owner']['name'], 
change['url'])
     if digest == '':
         digest = 'None'
     return digest
-- 
1.8.1.2


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.