[Libreoffice-commits] dev-tools.git: gerrit/auto-submit

Miklos Vajna vmiklos at collabora.co.uk
Thu Jul 28 12:25:23 UTC 2016


 gerrit/auto-submit/gerrit-autosubmit |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit a3e908fbbb3a4edb6aeccbb3dd6e1b2d9c7e948e
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Thu Jul 28 14:24:30 2016 +0200

    gerrit-autosubmit: ignore when the owner's username is missing
    
    Change-Id: I2954d8f993f1a3221895a6d5847f59fcad9b8e5f

diff --git a/gerrit/auto-submit/gerrit-autosubmit b/gerrit/auto-submit/gerrit-autosubmit
index 52fc02c..4f6f184 100755
--- a/gerrit/auto-submit/gerrit-autosubmit
+++ b/gerrit/auto-submit/gerrit-autosubmit
@@ -28,6 +28,8 @@ try:
 
         if event['type'] != "comment-added":
             continue
+        if 'username' not in event['change']['owner'].keys():
+            continue
         if event['change']['owner']['username'] != os.environ['USER']:
             continue
         if event['change']['project'] != project:


More information about the Libreoffice-commits mailing list