option('force-cache')) { $monitor->refreshReleaseCache(true); } else { $monitor->ensureReleaseCache(); } $results = $monitor->checkRepositories(false); foreach ($results as $repo => $result) { if (isset($result['error'])) { $this->error(sprintf('[%s] %s', $repo, $result['error'])); continue; } $this->line(sprintf( '[%s] 分支 %s 已对齐 %s,扫描 %d 个提交。', $repo, $result['branch'], $result['head'], $result['commits_scanned'] )); if (!empty($result['issues']['develop_merges'])) { $this->warn(sprintf(' - 检测到 %d 个 develop merge', count($result['issues']['develop_merges']))); } if (!empty($result['issues']['missing_functions'])) { $this->warn(sprintf(' - 检测到 %d 个疑似缺失函数的提交', count($result['issues']['missing_functions']))); } } } }