commit | f6140134242eb0733843594361c77ad245e393b0 | [log] [tgz] |
---|---|---|
author | Christian Aistleitner <christian@quelltextlich.at> | Sun Jan 27 19:02:01 2013 +0100 |
committer | Christian Aistleitner <christian@quelltextlich.at> | Thu Apr 04 09:42:13 2013 +0000 |
tree | 4de1534545048ab191e7f420a6f1ee741f3b8380 | |
parent | 3fe5a5fbce4e6eb56a54a1e5d94a1297a28caace [diff] |
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; }