This commit is contained in:
nuno maduro
2026-08-06 17:52:04 +01:00
parent a40cc6bc0e
commit b795af3b1b
7 changed files with 509 additions and 22 deletions
+13
View File
@@ -259,6 +259,19 @@ final class Project
});
}
/**
* Adds a second, empty baseline key, so a lone recorded baseline can no
* longer stand in for the default branch.
*/
public function addBaseline(string $branch): void
{
$this->mutateGraph(function (array $graph) use ($branch): array {
$graph['baselines'][$branch] = ['sha' => null, 'tree' => [], 'results' => []];
return $graph;
});
}
/**
* @param callable(array<string, mixed>): array<string, mixed> $callback
*/