use of com.orion.vcs.git.info.BranchInfo in project orion-ops by lijiahangmax.
the class ApplicationVcsServiceImpl method getVcsBranchList.
@Override
public List<ApplicationVcsBranchVO> getVcsBranchList(Long id) {
// 打开git
try (Gits gits = this.openEventGit(id)) {
gits.fetch();
// 查询分支信息
List<BranchInfo> branchList = gits.branchList();
return Converts.toList(branchList, ApplicationVcsBranchVO.class);
}
}
Aggregations