public String render()

in src/main/java/com/cisco/gerrit/plugins/slack/message/MessageTemplate.java [121:147]


  public String render() {
    String result;
    result = "";

    try {
      String template;
      template = ResourceHelper.loadNamedResourceAsString("message-template.json");

      result =
          String.format(
              template,
              getChannel(),
              getName(),
              getAction(),
              getProject(),
              getBranch(),
              getUrl(),
              getNumber(),
              getTitle(),
              getMessage(),
              "good");
    } catch (IOException e) {
      LOGGER.error("Error rendering template: " + e.getMessage(), e);
    }

    return result;
  }