mirror of
https://github.com/pestphp/pest.git
synced 2026-09-06 23:03:34 +02:00
wip
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user