diff options
author | Dan Albert <danalbert@google.com> | 2015-01-12 19:51:39 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-01-12 19:51:39 +0000 |
commit | 0d0188b0c7e017e431c83b2f7e4956137430b6d9 (patch) | |
tree | 994830b799565135db2d1ea99d83b3b5e69d7c93 /tools | |
parent | d7f935a05b25d003a721565ba64a015b3a341fbe (diff) | |
parent | 29be12934258f15127b0e669d6f859d0999f897d (diff) | |
download | bionic-0d0188b0c7e017e431c83b2f7e4956137430b6d9.zip bionic-0d0188b0c7e017e431c83b2f7e4956137430b6d9.tar.gz bionic-0d0188b0c7e017e431c83b2f7e4956137430b6d9.tar.bz2 |
Merge "Only build changes that come from @google.com."
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bionicbb/gmail_listener.py | 6 |
1 files changed, 6 insertions, 0 deletions
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 build_project(gerrit_info, dry_run): 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 @@ def handle_comment(gerrit_info, body, dry_run): 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), |