Files
pest/src/Plugins/Tia/Contracts/Ci.php
T
Caleb White 7cdebc6a95 fix(tia): persist state on detached HEAD- #1844 (#1891)
* refactor: extract shared CI detection utility

Consolidate duplicated CI environment detection logic from
Snapshot and BaselineSync into a shared Pest\Support\Ci class.

This reduces duplication and provides a single source of truth
for CI detection, including comprehensive environment variable
checks for all major CI providers.

* fix(tia): persist state on detached HEAD

Allow detached checkouts to write, delete, and rebuild TIA state so
baseline publishers and local detached workflows produce a usable graph.

Resolve the writable baseline from the Git branch, CI branch metadata, or
a stable workspace key. Keep the default branch as the read fallback so
local workspaces can use a published baseline without changing it.
2026-09-14 19:26:59 +05:30

16 lines
203 B
PHP

<?php
declare(strict_types=1);
namespace Pest\Plugins\Tia\Contracts;
/**
* @internal
*/
interface Ci
{
public function currentBranch(): ?string;
public function defaultBranch(): ?string;
}