commit | f7c4aba5fb98308f2c39bdd1d14731aa68dd9a47 | [log] [tgz] |
---|---|---|
author | Emmanuel Debanne <e.debanne@criteo.com> | Wed Sep 10 16:02:54 2014 +0200 |
committer | Emmanuel Debanne <e.debanne@criteo.com> | Wed Sep 10 16:37:38 2014 +0200 |
tree | 3f595a24d11776ab5055d2259a9d734aba67aa0f | |
parent | 75889b77d942a627003082ae2c05855bf9acc9bc [diff] |
[Bug fix] Fix infinite loop When the bot puts a comment, it is processed by the plugin, leading to an infinite loop.
diff --git a/src/main/java/com/criteo/gerrit/plugins/automerge/AutomaticMerger.java b/src/main/java/com/criteo/gerrit/plugins/automerge/AutomaticMerger.java index 318762d..a486599 100644 --- a/src/main/java/com/criteo/gerrit/plugins/automerge/AutomaticMerger.java +++ b/src/main/java/com/criteo/gerrit/plugins/automerge/AutomaticMerger.java
@@ -110,7 +110,7 @@ } private void onCommendAdded(final CommentAddedEvent newComment) { - if (newComment.author.email == config.getBotEmail()) { + if (config.getBotEmail().equals(newComment.author.email)) { return; }