fix issues report when code review

This commit is contained in:
aaronchen2k
2020-02-11 08:46:17 +08:00
parent 95b46e92fd
commit ac4248fbe8
26 changed files with 222 additions and 231 deletions
+6 -3
View File
@@ -103,7 +103,8 @@ class gitModel extends model
$allCommands = [];
foreach ($logs as $log) {
$this->printLog("parsing log {$log->revision}");
if ($log->revision == $savedRevision) {
if ($log->revision == $savedRevision)
{
$this->printLog("{$log->revision} alread parsed, commit it");
continue;
}
@@ -152,12 +153,14 @@ class gitModel extends model
$arriveLastTag = false;
$jobToBuild = [];
foreach ($tags as $tag) {
if (!empty($savedTag) && $tag === $savedTag) { // get the last build tag position
if (!empty($savedTag) && $tag === $savedTag) // get the last build tag position
{
$arriveLastTag = true;
continue;
}
if (!empty($savedTag) && !$arriveLastTag) { // not get
if (!empty($savedTag) && !$arriveLastTag) // not get
{
continue;
}