@@ -50,22 +50,22 @@ class Workspace {
5050 /**
5151 * Bound GitHub cleanup checks so one slow repo cannot stall cleanup.
5252 */
53- private const CLEANUP_GITHUB_TIMEOUT = 5 ;
53+ protected const CLEANUP_GITHUB_TIMEOUT = 5 ;
5454
5555 /**
5656 * Bound per-worktree git cleanup probes so one wedged checkout cannot stall cleanup.
5757 */
58- private const CLEANUP_GIT_PROBE_TIMEOUT = 5 ;
58+ protected const CLEANUP_GIT_PROBE_TIMEOUT = 5 ;
5959
6060 /**
6161 * Closed PR pages to inspect per repo during cleanup.
6262 */
63- private const CLEANUP_GITHUB_MAX_PAGES = 3 ;
63+ protected const CLEANUP_GITHUB_MAX_PAGES = 3 ;
6464
6565 /**
6666 * Number of largest/oldest rows to expose in cleanup summaries.
6767 */
68- private const CLEANUP_SUMMARY_TOP_LIMIT = 10 ;
68+ protected const CLEANUP_SUMMARY_TOP_LIMIT = 10 ;
6969
7070 /**
7171 * Default cap on worktrees scanned for an artifact cleanup dry-run when no
@@ -89,7 +89,7 @@ public function __construct() {
8989 * @param int $timeout_seconds Optional timeout in seconds.
9090 * @return string|\WP_Error|null Fully-qualified remote default ref, timeout error, or null when unavailable.
9191 */
92- private function resolve_remote_default_ref ( string $ primary_path , int $ timeout_seconds = 0 ): string |\WP_Error |null {
92+ protected function resolve_remote_default_ref ( string $ primary_path , int $ timeout_seconds = 0 ): string |\WP_Error |null {
9393 $ result = $ this ->run_git ($ primary_path , 'symbolic-ref --quiet refs/remotes/origin/HEAD ' , $ timeout_seconds );
9494 if ( is_wp_error ($ result ) ) {
9595 return $ this ->is_git_timeout_error ($ result ) ? $ result : null ;
0 commit comments