getTagList() public method

获取tag记录
public getTagList ( $count = 20 ) : array
return array
 /**
  * 获取commit历史
  *
  * @param $projectId
  */
 public function actionGetCommitHistory($projectId, $branch = 'master')
 {
     $git = new Git();
     $conf = Project::getConf($projectId);
     $git->setConfig($conf);
     if ($conf->git_type == Project::GIT_TAG) {
         $list = $git->getTagList();
     } else {
         $list = $git->getCommitList($branch);
     }
     $this->renderJson($list);
 }