Use lower case condition keys Documentation of hooks-jira and hooks-bugzilla has always been using 'code-review' instead of 'Code-Review', which is currently used in gerrit master. To allow to continue using the old examples, we transform condition keys to lower case. Change-Id: I95cae5dc229dd61e3342388a842a44aa782eb5ce
diff --git a/hooks-its/src/main/java/com/googlesource/gerrit/plugins/hooks/workflow/GerritHookFilterChangeState.java b/hooks-its/src/main/java/com/googlesource/gerrit/plugins/hooks/workflow/GerritHookFilterChangeState.java index 7b2e7bd..e621f6f 100644 --- a/hooks-its/src/main/java/com/googlesource/gerrit/plugins/hooks/workflow/GerritHookFilterChangeState.java +++ b/hooks-its/src/main/java/com/googlesource/gerrit/plugins/hooks/workflow/GerritHookFilterChangeState.java
@@ -189,7 +189,7 @@ public Condition(String key, String[] values) { super(); - this.key = key; + this.key = key.toLowerCase(); this.val = values; }