mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 22:33:35 +02:00
wip
This commit is contained in:
@@ -44,6 +44,8 @@ final class WatchPatterns
|
||||
|
||||
private bool $baselined = false;
|
||||
|
||||
private ?string $defaultBranch = null;
|
||||
|
||||
public function useDefaults(string $projectRoot): void
|
||||
{
|
||||
$testPath = TestSuite::getInstance()->testPath;
|
||||
@@ -177,6 +179,16 @@ final class WatchPatterns
|
||||
return $this->baselined;
|
||||
}
|
||||
|
||||
public function setDefaultBranch(string $branch): void
|
||||
{
|
||||
$this->defaultBranch = $branch;
|
||||
}
|
||||
|
||||
public function defaultBranch(): ?string
|
||||
{
|
||||
return $this->defaultBranch;
|
||||
}
|
||||
|
||||
public function reset(): void
|
||||
{
|
||||
$this->patterns = [];
|
||||
@@ -185,6 +197,7 @@ final class WatchPatterns
|
||||
$this->locally = false;
|
||||
$this->filtered = false;
|
||||
$this->baselined = false;
|
||||
$this->defaultBranch = null;
|
||||
}
|
||||
|
||||
private function keyMatches(string $key, string $file): bool
|
||||
|
||||
Reference in New Issue
Block a user