[Libreoffice-commits] dev-tools.git: gerritbot/minilog.pyc gerritbot/send-daily-digest

Mathias Michel matm at gmx.fr
Fri Jun 21 01:43:51 PDT 2013


 gerritbot/minilog.pyc       |binary
 gerritbot/send-daily-digest |    4 ++--
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ef48d775c8baa039e2f16ef7da928d99c2c27994
Author: Mathias Michel <matm at gmx.fr>
Date:   Fri Jun 21 10:35:42 2013 +0200

    Update itemization's output

diff --git a/gerritbot/minilog.pyc b/gerritbot/minilog.pyc
new file mode 100644
index 0000000..7fdda87
Binary files /dev/null and b/gerritbot/minilog.pyc differ
diff --git a/gerritbot/send-daily-digest b/gerritbot/send-daily-digest
index 278605f..8d92c84 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'].ljust(75)[:75], change['url'], change['owner']['name'])
+            digest += '+ %s\n  in %s from %s\n' % (change['subject'][:73], change['url'], change['owner']['name'])
     if digest == '':
         digest = 'None'
     return digest
@@ -41,7 +41,7 @@ def create_message(gerrit, age):
     body += get_digest(gerrit, get_daily_query('merged', age))
     body += '\n\n* Abandoned changes on master for project core changed in the last %d hours:\n\n' % age
     body += get_digest(gerrit, get_daily_query('abandoned', age))
-    body += '\n\n* Open changes needing tweaks, but being untouched for more than a week:\n'
+    body += '\n\n* Open changes needing tweaks, but being untouched for more than a week:\n\n'
     body += get_digest(gerrit, 'project:core branch:master status:open (label:Code-Review<=-1 OR label:Verified<=-1) age:1w')
     body += '''
 


More information about the Libreoffice-commits mailing list