apollo-adminservice/src/main/java/com/ctrip/framework/apollo/adminservice/controller/CommitController.java/CommitController/find
class CommitController:  @GetMapping("/apps/{appId}/clusters/{clusterName}/namespaces/{namespaceName}/commit")
  public List<CommitDTO> find(@PathVariable String appId, @PathVariable String clusterName,
                              @PathVariable String namespaceName, @RequestParam(required = false) String key, Pageable pageable){

    List<Commit> commits;
    if (StringUtils.isEmpty(key)) {
      commits = commitService.find(appId, clusterName, namespaceName, pageable);
    } else {
      commits = commitService.findByKey(appId, clusterName, namespaceName, key, pageable);
    }
    return BeanUtils.batchTransform(CommitDTO.class, commits);
  }