public function getTagList($count = 20)
{
// 先更新
$this->updateRepo();
$destination = Project::getDeployFromDir();
$cmd[] = sprintf('cd %s ', $destination);
$cmd[] = '/usr/bin/env git tag -l ';
$command = join(' && ', $cmd);
$result = $this->runLocalCommand($command);
if (!$result) {
throw new \Exception(\yii::t('walle', 'get tags failed') . $this->getExeLog());
}
$history = [];
$list = explode(PHP_EOL, $this->getExeLog());
foreach ($list as $item) {
$history[] = ['id' => $item, 'message' => $item];
}
return $history;
}