Merge "Only build changes that come from @google.com."
diff --git a/tools/bionicbb/gmail_listener.py b/tools/bionicbb/gmail_listener.py
index 8718484..f2c061b 100644
--- a/tools/bionicbb/gmail_listener.py
+++ b/tools/bionicbb/gmail_listener.py
@@ -200,6 +200,8 @@
 
 
 def handle_change(gerrit_info, _, dry_run):
+    if '@google.com' not in gerrit_info['Gerrit-Owner']:
+        return True
     return build_project(gerrit_info, dry_run)
 handle_newchange = handle_change
 handle_newpatchset = handle_change
@@ -230,6 +232,10 @@
     if 'Verified+1' in body:
         drop_rejection(gerrit_info, dry_run)
 
+    # TODO(danalbert): Needs to be based on the account that made the comment.
+    if '@google.com' not in gerrit_info['Gerrit-Owner']:
+        return True
+
     command_map = {
         'clean': lambda: clean_project(gerrit_info, dry_run),
         'retry': lambda: build_project(gerrit_info, dry_run),