summaryrefslogtreecommitdiffstats
path: root/tools/bionicbb
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2015-04-13 17:32:19 -0700
committerDan Albert <danalbert@google.com>2015-04-13 17:33:51 -0700
commita0ecd5b2b4bcb2979f0105c444fa48ef4a66ea8e (patch)
tree290111b858d8575eedd1deaf94668d6c8a92c38f /tools/bionicbb
parentde889741201faa338e01babdfd10bbd597769e60 (diff)
downloadbionic-a0ecd5b2b4bcb2979f0105c444fa48ef4a66ea8e.zip
bionic-a0ecd5b2b4bcb2979f0105c444fa48ef4a66ea8e.tar.gz
bionic-a0ecd5b2b4bcb2979f0105c444fa48ef4a66ea8e.tar.bz2
Skip merge-failed messages from Gerrit.
Change-Id: I2d8055a44cd78f95e64d6cf88e9efdd610a4fa88
Diffstat (limited to 'tools/bionicbb')
-rw-r--r--tools/bionicbb/gmail_listener.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/bionicbb/gmail_listener.py b/tools/bionicbb/gmail_listener.py
index 632426b..dd0c008 100644
--- a/tools/bionicbb/gmail_listener.py
+++ b/tools/bionicbb/gmail_listener.py
@@ -316,6 +316,7 @@ def skip_handler(gerrit_info, _, __):
gerrit_info['Change-Id'])
return True
handle_abandon = skip_handler
+handle_merge_failed = skip_handler
handle_merged = skip_handler
handle_restore = skip_handler
handle_revert = skip_handler
@@ -329,7 +330,8 @@ def process_message(msg, dry_run):
print termcolor.colored('No info found: {}'.format(msg['id']),
'red')
msg_type = gerrit_info['MessageType']
- handler = 'handle_{}'.format(gerrit_info['MessageType'])
+ handler = 'handle_{}'.format(
+ gerrit_info['MessageType'].replace('-', '_'))
if handler in globals():
return globals()[handler](gerrit_info, body, dry_run)
else: