[Libreoffice-commits] dev-tools.git: gerritbot/send-daily-digest
Bjoern Michaelsen
bjoern.michaelsen at canonical.com
Wed Jun 12 01:16:34 PDT 2013
gerritbot/send-daily-digest | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 06415afc3490e359429319efd11889e0e60cbc82
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date: Wed Jun 12 10:14:02 2013 +0200
moar indent, also remove end-daily-digest
- end-daily-digest shows up in the wrong place anyway
Change-Id: I83aa2246e9683b667e8f60e8f11be11dac411f96
diff --git a/gerritbot/send-daily-digest b/gerritbot/send-daily-digest
index c7847ae..278605f 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'].ljust(75)[:75], 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\end-daily-digest'
+ body += '\n\n* Open changes needing tweaks, but being untouched for more than a week:\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