Merge branch 'stable-3.0' into stable-3.1
* stable-3.0:
Upgrade bazlets to latest stable-2.16
Change-Id: Ic49060b4ac0aa3c09b024755a5a779bab2107783
diff --git a/WORKSPACE b/WORKSPACE
index 8870d08..c2c6a47 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -3,7 +3,7 @@
load("//:bazlets.bzl", "load_bazlets")
load_bazlets(
- commit = "7a9ae377b519934c87184cc05845663ed708b69c",
+ commit = "b6cb89690a5e06261932eb30c95fd8db34a7943a",
#local_path = "/home/<user>/projects/bazlets",
)
diff --git a/src/main/java/com/googlesource/gerrit/plugins/changemessage/rest/GetChangeInfo.java b/src/main/java/com/googlesource/gerrit/plugins/changemessage/rest/GetChangeInfo.java
index d7694d9..8cfed27 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/changemessage/rest/GetChangeInfo.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/changemessage/rest/GetChangeInfo.java
@@ -15,6 +15,7 @@
package com.googlesource.gerrit.plugins.changemessage.rest;
import com.google.gerrit.extensions.annotations.PluginName;
+import com.google.gerrit.extensions.restapi.Response;
import com.google.gerrit.extensions.restapi.RestReadView;
import com.google.gerrit.server.change.ChangeResource;
import com.google.gerrit.server.config.PluginConfig;
@@ -33,9 +34,9 @@
}
@Override
- public String apply(ChangeResource rsrc) throws NoSuchProjectException {
+ public Response apply(ChangeResource rsrc) throws NoSuchProjectException {
PluginConfig cfg =
cfgFactory.getFromProjectConfigWithInheritance(rsrc.getProject(), pluginName);
- return cfg.getString("changeInfo");
+ return Response.ok(cfg.getString("changeInfo"));
}
}