Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Enable coverage for PTY tests and add CI status tests (#222)
Maximilian Roos71b35e76d70c
diff --git a/dev/coverage.sh b/dev/coverage.shindex 5562ba96f..6819b3ee3 100755--- a/dev/coverage.sh+++ b/dev/coverage.sh@@ -25,8 +25,12 @@ COVERAGE_DIR="target/llvm-cov"LCOV_PATH="${COVERAGE_DIR}/lcov.info"mkdir -p "${COVERAGE_DIR}"+# Include shell-integration-tests feature for comprehensive coverage of TUI/PTY code.+# Set NEXTEST_NO_INPUT_HANDLER to prevent nextest terminal cleanup issues with PTY tests.+export NEXTEST_NO_INPUT_HANDLER=1+# Run tests once with instrumentation, without generating a report yet.-"${CARGO_BIN[@]}" llvm-cov --locked --workspace --no-report "$@"+"${CARGO_BIN[@]}" llvm-cov --locked --workspace --no-report --features shell-integration-tests "$@"# Generate HTML (optionally open) and LCOV reports from the recorded data without rerunning tests.OPEN_FLAG=()diff --git a/tests/CLAUDE.md b/tests/CLAUDE.mdindex 81437c124..f96318878 100644--- a/tests/CLAUDE.md+++ b/tests/CLAUDE.md@@ -159,6 +159,21 @@ When converting a README example test from `insta_cmd` to PTY-based:The PTY approach is specifically for **user-facing output documentation**. It's not a replacement for standard integration tests - both approaches serve different purposes and should coexist in the test suite.+## Coverage in PTY Tests++PTY tests use `cmd.env_clear()` for isolation. To enable coverage, pass through LLVM env vars:++```rust+// Standard setup (most PTY tests)+crate::common::configure_pty_command(&mut cmd);++// Custom env setup (shell tests needing USER, SHELL, ZDOTDIR)+cmd.env_clear();+cmd.env("HOME", ...);+// ... custom env ...+crate::common::pass_coverage_env_to_pty_cmd(&mut cmd);+```+## Deterministic Time in TestsTests use `TEST_EPOCH` (2025-01-01) for reproducible timestamps. The constant is defined in `tests/common/mod.rs` and automatically set as `SOURCE_DATE_EPOCH` in the test environment.diff --git a/tests/common/mod.rs b/tests/common/mod.rsindex 0591132d4..65adb5808 100644--- a/tests/common/mod.rs+++ b/tests/common/mod.rs@@ -420,6 +420,27 @@ pub fn native_pty_system() -> Box<dyn portable_pty::PtySystem> {portable_pty::native_pty_system()}+/// Open a PTY pair with default size (48 rows x 200 cols).+///+/// Most PTY tests use this standard size. Returns the master/slave pair.+#[cfg(unix)]+pub fn open_pty() -> portable_pty::PtyPair {+ open_pty_with_size(48, 200)+}++/// Open a PTY pair with specified size.+#[cfg(unix)]+pub fn open_pty_with_size(rows: u16, cols: u16) -> portable_pty::PtyPair {+ native_pty_system()+ .openpty(portable_pty::PtySize {+ rows,+ cols,+ pixel_width: 0,+ pixel_height: 0,+ })+ .unwrap()+}+use insta_cmd::get_cargo_bin;use std::collections::HashMap;use std::path::{Path, PathBuf};@@ -594,6 +615,108 @@ pub fn configure_cli_command(cmd: &mut Command) {}}+/// Configure a PTY CommandBuilder with isolated environment for testing.+///+/// This is the PTY equivalent of `configure_cli_command()`. It:+/// 1. Clears all inherited environment variables+/// 2. Sets minimal required vars (HOME, PATH)+/// 3. Passes through LLVM coverage profiling vars so subprocess coverage works+///+/// Call this early in PTY test setup, then add any test-specific env vars after.+pub fn configure_pty_command(cmd: &mut portable_pty::CommandBuilder) {+ // Clear inherited environment for test isolation+ cmd.env_clear();++ // Minimal environment for shells/binaries to function+ cmd.env(+ "HOME",+ home::home_dir().unwrap().to_string_lossy().to_string(),+ );+ cmd.env(+ "PATH",+ std::env::var("PATH").unwrap_or_else(|_| "/usr/bin:/bin".to_string()),+ );++ // Pass through LLVM coverage profiling environment for subprocess coverage.+ // Without this, spawned binaries can't write coverage data.+ pass_coverage_env_to_pty_cmd(cmd);+}++/// Pass through LLVM coverage profiling environment to a portable_pty::CommandBuilder.+///+/// PTY tests use `cmd.env_clear()` for isolation, which removes LLVM_PROFILE_FILE.+/// Without this, spawned binaries can't write coverage data.+///+/// Use `configure_pty_command()` for the full setup, or call this directly if you+/// need custom env_clear handling (e.g., shell-specific env vars).+pub fn pass_coverage_env_to_pty_cmd(cmd: &mut portable_pty::CommandBuilder) {+ for key in [+ "LLVM_PROFILE_FILE",+ "CARGO_LLVM_COV",+ "CARGO_LLVM_COV_TARGET_DIR",+ ] {+ if let Ok(val) = std::env::var(key) {+ cmd.env(key, val);+ }+ }+}++/// Create a CommandBuilder for running a shell in PTY tests.+///+/// Handles all shell-specific setup:+/// - env_clear + HOME + PATH (with optional bin_dir prefix)+/// - Shell-specific env vars (ZDOTDIR for zsh)+/// - Shell-specific isolation flags (--norc, --no-rcs, --no-config)+/// - Coverage passthrough+///+/// Returns a CommandBuilder ready for `.arg("-c")` and `.arg(&script)`.+#[cfg(unix)]+pub fn shell_command(+ shell: &str,+ bin_dir: Option<&std::path::Path>,+) -> portable_pty::CommandBuilder {+ let mut cmd = portable_pty::CommandBuilder::new(shell);+ cmd.env_clear();++ cmd.env(+ "HOME",+ home::home_dir().unwrap().to_string_lossy().to_string(),+ );++ let path = match bin_dir {+ Some(dir) => format!(+ "{}:{}",+ dir.display(),+ std::env::var("PATH").unwrap_or_else(|_| "/usr/bin:/bin".to_string())+ ),+ None => std::env::var("PATH").unwrap_or_else(|_| "/usr/bin:/bin".to_string()),+ };+ cmd.env("PATH", path);++ // Shell-specific setup+ match shell {+ "zsh" => {+ cmd.env("ZDOTDIR", "/dev/null");+ cmd.arg("--no-rcs");+ cmd.arg("-o");+ cmd.arg("NO_GLOBAL_RCS");+ cmd.arg("-o");+ cmd.arg("NO_RCS");+ }+ "bash" => {+ cmd.arg("--norc");+ cmd.arg("--noprofile");+ }+ "fish" => {+ cmd.arg("--no-config");+ }+ _ => {}+ }++ pass_coverage_env_to_pty_cmd(&mut cmd);+ cmd+}+/// Set home environment variables for commands that rely on isolated temp homes.////// Sets both Unix (`HOME`, `XDG_CONFIG_HOME`) and Windows (`USERPROFILE`) variables@@ -1295,98 +1418,13 @@ impl TestRepo {////// The mock gh returns:/// - `gh auth status`: exits successfully (0)- /// - `gh pr view`: exits with error (no PR found) - fails fast- /// - `gh run list`: exits with error (no runs found) - fails fast+ /// - `gh pr list`: returns empty JSON array (no PRs found)+ /// - `gh run list`: returns empty JSON array (no runs found)////// This prevents CI detection from blocking tests with network calls.pub fn setup_mock_gh(&mut self) {- let mock_bin = self.temp_dir.path().join("mock-bin");- std::fs::create_dir_all(&mock_bin).unwrap();-- // Create mock gh script- let gh_script = mock_bin.join("gh");- std::fs::write(- &gh_script,- r#"#!/bin/sh-# Mock gh command that fails fast without network calls--case "$1" in- --version)- # gh --version - succeed (indicates gh is installed)- echo "gh version 2.0.0 (mock)"- exit 0- ;;- auth)- # gh auth status - succeed immediately- exit 0- ;;- pr|run)- # gh pr view / gh run list - fail fast (no PR/runs found)- exit 1- ;;- *)- # Unknown command - fail- exit 1- ;;-esac-"#,- )- .unwrap();-- // Make executable on Unix- #[cfg(unix)]- {- use std::os::unix::fs::PermissionsExt;- std::fs::set_permissions(&gh_script, std::fs::Permissions::from_mode(0o755)).unwrap();- }-- // Create Windows batch file version of gh mock- #[cfg(windows)]- {- let gh_cmd = mock_bin.join("gh.cmd");- std::fs::write(- &gh_cmd,- r#"@echo off-if "%1"=="--version" (- echo gh version 2.0.0 (mock)- exit /b 0-)-if "%1"=="auth" (- exit /b 0-)-if "%1"=="pr" exit /b 1-if "%1"=="run" exit /b 1-exit /b 1-"#,- )- .unwrap();- }-- // Create mock glab script (fails immediately)- let glab_script = mock_bin.join("glab");- std::fs::write(- &glab_script,- r#"#!/bin/sh-# Mock glab command that fails fast-exit 1-"#,- )- .unwrap();-- #[cfg(unix)]- {- use std::os::unix::fs::PermissionsExt;- std::fs::set_permissions(&glab_script, std::fs::Permissions::from_mode(0o755)).unwrap();- }-- // Create Windows batch file version of glab mock- #[cfg(windows)]- {- let glab_cmd = mock_bin.join("glab.cmd");- std::fs::write(&glab_cmd, "@echo off\nexit /b 1\n").unwrap();- }-- self.mock_bin_path = Some(mock_bin);+ // Delegate to setup_mock_gh_with_ci_data with empty arrays+ self.setup_mock_gh_with_ci_data("[]", "[]");}/// Setup mock `gh` and `glab` commands that show "installed but not authenticated"@@ -1518,14 +1556,137 @@ exit /b 1self.mock_bin_path = Some(mock_bin);}+ /// Setup mock `gh` that returns configurable PR/CI data+ ///+ /// Use this for testing CI status parsing code. The mock returns JSON data+ /// for `gh pr list` and `gh run list` commands.+ ///+ /// # Arguments+ /// * `pr_json` - JSON string to return for `gh pr list --json ...`+ /// * `run_json` - JSON string to return for `gh run list --json ...`+ pub fn setup_mock_gh_with_ci_data(&mut self, pr_json: &str, run_json: &str) {+ let mock_bin = self.temp_dir.path().join("mock-bin");+ std::fs::create_dir_all(&mock_bin).unwrap();++ // Write JSON files to be read by the script+ let pr_json_file = mock_bin.join("pr_data.json");+ let run_json_file = mock_bin.join("run_data.json");+ std::fs::write(&pr_json_file, pr_json).unwrap();+ std::fs::write(&run_json_file, run_json).unwrap();++ // Create mock gh script that returns JSON data+ let gh_script = mock_bin.join("gh");+ std::fs::write(+ &gh_script,+ format!(+ r#"#!/bin/sh+# Mock gh command that returns configured JSON data++case "$1" in+ --version)+ echo "gh version 2.0.0 (mock)"+ exit 0+ ;;+ auth)+ # gh auth status - succeed immediately+ exit 0+ ;;+ pr)+ # gh pr list - return PR data from file+ cat "{pr_json}"+ exit 0+ ;;+ run)+ # gh run list - return run data from file+ cat "{run_json}"+ exit 0+ ;;+ *)+ exit 1+ ;;+esac+"#,+ pr_json = pr_json_file.display(),+ run_json = run_json_file.display(),+ ),+ )+ .unwrap();++ #[cfg(unix)]+ {+ use std::os::unix::fs::PermissionsExt;+ std::fs::set_permissions(&gh_script, std::fs::Permissions::from_mode(0o755)).unwrap();+ }++ // Create Windows batch file versions of gh mock (.bat and .cmd)+ // Both are needed because different resolution methods may prefer different extensions.+ // Use %~dp0 (directory containing the batch file) for reliable relative paths.+ #[cfg(windows)]+ {+ let batch_content = r#"@echo off+if "%1"=="--version" goto version+if "%1"=="auth" goto auth+if "%1"=="pr" goto pr+if "%1"=="run" goto run+goto fail++:version+echo gh version 2.0.0 (mock)+exit /b 0++:auth+exit /b 0++:pr+type "%~dp0pr_data.json"+exit /b 0++:run+type "%~dp0run_data.json"+exit /b 0++:fail+exit /b 1+"#;+ std::fs::write(mock_bin.join("gh.cmd"), batch_content).unwrap();+ std::fs::write(mock_bin.join("gh.bat"), batch_content).unwrap();+ }++ // Create mock glab script (fails immediately - no GitLab support in this mock)+ let glab_script = mock_bin.join("glab");+ std::fs::write(+ &glab_script,+ r#"#!/bin/sh+# Mock glab command that fails fast+exit 1+"#,+ )+ .unwrap();++ #[cfg(unix)]+ {+ use std::os::unix::fs::PermissionsExt;+ std::fs::set_permissions(&glab_script, std::fs::Permissions::from_mode(0o755)).unwrap();+ }++ #[cfg(windows)]+ {+ let glab_content = "@echo off\nexit /b 1\n";+ std::fs::write(mock_bin.join("glab.cmd"), glab_content).unwrap();+ std::fs::write(mock_bin.join("glab.bat"), glab_content).unwrap();+ }++ self.mock_bin_path = Some(mock_bin);+ }+/// Configure a command to use mock gh/glab commands////// Must call `setup_mock_gh()` first. Prepends the mock bin directory to PATH/// so gh/glab commands are intercepted.///- /// On Windows, this also removes directories containing real gh.exe/glab.exe from PATH.- /// This is necessary because Windows searches for .exe before .cmd in PATHEXT order,- /// so a real gh.exe would be found before our mock gh.cmd even with mock-bin first.+ /// On Windows, this also removes directories containing real gh.exe/glab.exe+ /// from PATH and sets PATHEXT to prefer .BAT/.CMD before .EXE. This ensures+ /// our mock .bat/.cmd scripts are found instead of any real gh.exe.////// Metadata redactions keep PATH private in snapshots, so we can reuse the/// caller's PATH instead of a hardcoded minimal list.@@ -1536,11 +1697,19 @@ exit /b 1.map(|p| std::env::split_paths(p).collect()).unwrap_or_default();- // On Windows, remove directories containing real gh.exe or glab.exe- // to ensure our mock .cmd files are found instead+ // On Windows, Rust's Command::new looks for executables with .exe extension.+ // We need a gh.exe in mock_bin, but creating real executables is complex.+ // Instead, create a gh.bat (which Windows will execute for "gh" if .bat+ // comes before .exe in PATHEXT) and modify PATHEXT accordingly.+ // Also remove directories containing real gh.exe from PATH.#[cfg(windows)]{paths.retain(|dir| !dir.join("gh.exe").exists() && !dir.join("glab.exe").exists());+ // Put .BAT before .EXE so our gh.bat is found+ cmd.env(+ "PATHEXT",+ ".BAT;.CMD;.COM;.EXE;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC",+ );}paths.insert(0, mock_bin.clone());diff --git a/tests/common/progressive_output.rs b/tests/common/progressive_output.rsindex a56e2f029..fea8c8985 100644--- a/tests/common/progressive_output.rs+++ b/tests/common/progressive_output.rs@@ -100,7 +100,7 @@use crate::common::{ExponentialBackoff, TestRepo};use insta_cmd::get_cargo_bin;-use portable_pty::{CommandBuilder, PtySize};+use portable_pty::CommandBuilder;use std::io::Read;use std::time::{Duration, Instant};@@ -331,22 +331,7 @@ pub fn capture_progressive_output() -> ProgressiveOutput {let start_time = Instant::now();- // Create PTY (handles signal blocking for background process groups)- // The guard restores the tty foreground pgrp on drop if it was changed- let pty_system = super::native_pty_system();- let pair = pty_system- .openpty(PtySize {- rows: options.terminal_size.0,- cols: options.terminal_size.1,- pixel_width: 0,- pixel_height: 0,- })- .unwrap_or_else(|_| {- panic!(- "Failed to open PTY with size {}x{}",- options.terminal_size.0, options.terminal_size.1- )- });+ let pair = super::open_pty_with_size(options.terminal_size.0, options.terminal_size.1);// Build commandlet mut cmd = CommandBuilder::new(get_cargo_bin("wt"));diff --git a/tests/integration_tests/approval_pty.rs b/tests/integration_tests/approval_pty.rsindex 07faf9a6e..39bf21e29 100644--- a/tests/integration_tests/approval_pty.rs+++ b/tests/integration_tests/approval_pty.rs@@ -15,7 +15,7 @@use crate::common::{TestRepo, repo};use insta::assert_snapshot;use insta_cmd::get_cargo_bin;-use portable_pty::{CommandBuilder, PtySize};+use portable_pty::CommandBuilder;use rstest::rstest;use std::io::{Read, Write};use std::path::Path;@@ -30,33 +30,16 @@ fn exec_in_pty_with_input(env_vars: &[(String, String)],input: &str,) -> (String, i32) {- let pty_system = crate::common::native_pty_system();- let pair = pty_system- .openpty(PtySize {- rows: 48,- cols: 200,- pixel_width: 0,- pixel_height: 0,- })- .unwrap();+ let pair = crate::common::open_pty();- // Spawn the command inside the PTYlet mut cmd = CommandBuilder::new(command);for arg in args {cmd.arg(arg);}cmd.cwd(working_dir);- // Set minimal environment- cmd.env_clear();- cmd.env(- "HOME",- home::home_dir().unwrap().to_string_lossy().to_string(),- );- cmd.env(- "PATH",- std::env::var("PATH").unwrap_or_else(|_| "/usr/bin:/bin".to_string()),- );+ // Set up isolated environment with coverage passthrough+ crate::common::configure_pty_command(&mut cmd);// Add test-specific environment variablesfor (key, value) in env_vars {diff --git a/tests/integration_tests/ci_status.rs b/tests/integration_tests/ci_status.rsnew file mode 100644index 000000000..aa65a76ef--- /dev/null+++ b/tests/integration_tests/ci_status.rs@@ -0,0 +1,566 @@+//! Tests for CI status detection and parsing+//!+//! These tests verify that the CI status parsing code correctly handles+//! JSON responses from GitHub (gh) and GitLab (glab) CLI tools.+//!+//! TODO: Re-enable on Windows once we have a reliable way to mock the `gh` command.+//! Currently skipped because Rust's `Command::new("gh")` doesn't use PATHEXT for+//! resolution - it looks for `.exe` directly. Our mock `gh.bat` scripts aren't+//! found, so we can't mock the gh command reliably without creating a real `.exe`+//! wrapper or modifying the source to use shell execution.++#![cfg(not(windows))]++use crate::common::{TestRepo, make_snapshot_cmd, repo, setup_snapshot_settings};+use insta_cmd::assert_cmd_snapshot;+use rstest::rstest;+use std::process::Command;++/// Get the HEAD commit SHA for a branch+fn get_branch_sha(repo: &TestRepo, branch: &str) -> String {+ let output = repo+ .git_command(&["rev-parse", branch])+ .output()+ .expect("Failed to get commit SHA");+ String::from_utf8_lossy(&output.stdout).trim().to_string()+}++/// Test CI status detection with GitHub PR showing passed checks+#[rstest]+fn test_list_full_with_github_pr_passed(mut repo: TestRepo) {+ // Add GitHub remote+ repo.git_command(&[+ "remote",+ "add",+ "origin",+ "https://github.com/test-owner/test-repo.git",+ ])+ .output()+ .unwrap();++ // Create a feature branch and push it+ repo.add_worktree("feature");+ repo.push_branch("feature");++ // Get actual commit SHA so PR isn't marked as stale+ let head_sha = get_branch_sha(&repo, "feature");++ // Setup mock gh that returns PR data with passed checks+ let pr_json = format!(+ r#"[{{+ "headRefOid": "{}",+ "mergeStateStatus": "CLEAN",+ "statusCheckRollup": [+ {{"status": "COMPLETED", "conclusion": "SUCCESS"}}+ ],+ "url": "https://github.com/test-owner/test-repo/pull/1",+ "headRepositoryOwner": {{"login": "test-owner"}}+ }}]"#,+ head_sha+ );+ let run_json = "[]";+ repo.setup_mock_gh_with_ci_data(&pr_json, run_json);++ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = make_snapshot_cmd(&repo, "list", &["--full"], None);+ repo.configure_mock_commands(&mut cmd);+ assert_cmd_snapshot!(cmd);+ });+}++/// Test CI status detection with GitHub PR showing failed checks+#[rstest]+fn test_list_full_with_github_pr_failed(mut repo: TestRepo) {+ // Add GitHub remote+ repo.git_command(&[+ "remote",+ "add",+ "origin",+ "https://github.com/test-owner/test-repo.git",+ ])+ .output()+ .unwrap();++ // Create a feature branch and push it+ repo.add_worktree("feature");+ repo.push_branch("feature");++ // Get actual commit SHA so PR isn't marked as stale+ let head_sha = get_branch_sha(&repo, "feature");++ // Setup mock gh that returns PR data with failed checks+ let pr_json = format!(+ r#"[{{+ "headRefOid": "{}",+ "mergeStateStatus": "BLOCKED",+ "statusCheckRollup": [+ {{"status": "COMPLETED", "conclusion": "FAILURE"}}+ ],+ "url": "https://github.com/test-owner/test-repo/pull/1",+ "headRepositoryOwner": {{"login": "test-owner"}}+ }}]"#,+ head_sha+ );+ let run_json = "[]";+ repo.setup_mock_gh_with_ci_data(&pr_json, run_json);++ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = make_snapshot_cmd(&repo, "list", &["--full"], None);+ repo.configure_mock_commands(&mut cmd);+ assert_cmd_snapshot!(cmd);+ });+}++/// Test CI status detection with GitHub PR showing running checks+#[rstest]+fn test_list_full_with_github_pr_running(mut repo: TestRepo) {+ // Add GitHub remote+ repo.git_command(&[+ "remote",+ "add",+ "origin",+ "https://github.com/test-owner/test-repo.git",+ ])+ .output()+ .unwrap();++ // Create a feature branch and push it+ repo.add_worktree("feature");+ repo.push_branch("feature");++ // Get actual commit SHA so PR isn't marked as stale+ let head_sha = get_branch_sha(&repo, "feature");++ // Setup mock gh that returns PR data with running checks+ let pr_json = format!(+ r#"[{{+ "headRefOid": "{}",+ "mergeStateStatus": "UNKNOWN",+ "statusCheckRollup": [+ {{"status": "IN_PROGRESS", "conclusion": null}}+ ],+ "url": "https://github.com/test-owner/test-repo/pull/1",+ "headRepositoryOwner": {{"login": "test-owner"}}+ }}]"#,+ head_sha+ );+ let run_json = "[]";+ repo.setup_mock_gh_with_ci_data(&pr_json, run_json);++ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = make_snapshot_cmd(&repo, "list", &["--full"], None);+ repo.configure_mock_commands(&mut cmd);+ assert_cmd_snapshot!(cmd);+ });+}++/// Test CI status detection with GitHub PR showing conflicts+#[rstest]+fn test_list_full_with_github_pr_conflicts(mut repo: TestRepo) {+ // Add GitHub remote+ repo.git_command(&[+ "remote",+ "add",+ "origin",+ "https://github.com/test-owner/test-repo.git",+ ])+ .output()+ .unwrap();++ // Create a feature branch and push it+ repo.add_worktree("feature");+ repo.push_branch("feature");++ // Get actual commit SHA so PR isn't marked as stale+ let head_sha = get_branch_sha(&repo, "feature");++ // Setup mock gh that returns PR data with merge conflicts+ let pr_json = format!(+ r#"[{{+ "headRefOid": "{}",+ "mergeStateStatus": "DIRTY",+ "statusCheckRollup": [+ {{"status": "COMPLETED", "conclusion": "SUCCESS"}}+ ],+ "url": "https://github.com/test-owner/test-repo/pull/1",+ "headRepositoryOwner": {{"login": "test-owner"}}+ }}]"#,+ head_sha+ );+ let run_json = "[]";+ repo.setup_mock_gh_with_ci_data(&pr_json, run_json);++ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = make_snapshot_cmd(&repo, "list", &["--full"], None);+ repo.configure_mock_commands(&mut cmd);+ assert_cmd_snapshot!(cmd);+ });+}++/// Test CI status detection with StatusContext (external CI like pre-commit.ci)+#[rstest]+fn test_list_full_with_status_context_pending(mut repo: TestRepo) {+ // Add GitHub remote+ repo.git_command(&[+ "remote",+ "add",+ "origin",+ "https://github.com/test-owner/test-repo.git",+ ])+ .output()+ .unwrap();++ // Create a feature branch and push it+ repo.add_worktree("feature");+ repo.push_branch("feature");++ // Get actual commit SHA so PR isn't marked as stale+ let head_sha = get_branch_sha(&repo, "feature");++ // Setup mock gh with StatusContext (external CI) pending+ let pr_json = format!(+ r#"[{{+ "headRefOid": "{}",+ "mergeStateStatus": "UNKNOWN",+ "statusCheckRollup": [+ {{"state": "PENDING"}}+ ],+ "url": "https://github.com/test-owner/test-repo/pull/1",+ "headRepositoryOwner": {{"login": "test-owner"}}+ }}]"#,+ head_sha+ );+ let run_json = "[]";+ repo.setup_mock_gh_with_ci_data(&pr_json, run_json);++ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = make_snapshot_cmd(&repo, "list", &["--full"], None);+ repo.configure_mock_commands(&mut cmd);+ assert_cmd_snapshot!(cmd);+ });+}++/// Test CI status detection with StatusContext failure (external CI)+#[rstest]+fn test_list_full_with_status_context_failure(mut repo: TestRepo) {+ // Add GitHub remote+ repo.git_command(&[+ "remote",+ "add",+ "origin",+ "https://github.com/test-owner/test-repo.git",+ ])+ .output()+ .unwrap();++ // Create a feature branch and push it+ repo.add_worktree("feature");+ repo.push_branch("feature");++ // Get actual commit SHA so PR isn't marked as stale+ let head_sha = get_branch_sha(&repo, "feature");++ // Setup mock gh with StatusContext (external CI) failure+ let pr_json = format!(+ r#"[{{+ "headRefOid": "{}",+ "mergeStateStatus": "BLOCKED",+ "statusCheckRollup": [+ {{"state": "FAILURE"}}+ ],+ "url": "https://github.com/test-owner/test-repo/pull/1",+ "headRepositoryOwner": {{"login": "test-owner"}}+ }}]"#,+ head_sha+ );+ let run_json = "[]";+ repo.setup_mock_gh_with_ci_data(&pr_json, run_json);++ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = make_snapshot_cmd(&repo, "list", &["--full"], None);+ repo.configure_mock_commands(&mut cmd);+ assert_cmd_snapshot!(cmd);+ });+}++/// Test CI status detection with no PR but workflow run+#[rstest]+fn test_list_full_with_github_workflow_run(mut repo: TestRepo) {+ // Add GitHub remote+ repo.git_command(&[+ "remote",+ "add",+ "origin",+ "https://github.com/test-owner/test-repo.git",+ ])+ .output()+ .unwrap();++ // Create a feature branch and push it (so has_upstream is true)+ repo.add_worktree("feature");+ repo.push_branch("feature");++ // Get actual commit SHA so workflow run isn't marked as stale+ let head_sha = get_branch_sha(&repo, "feature");++ // Setup mock gh with no PR but workflow run+ let pr_json = "[]"; // No PR+ let run_json = format!(+ r#"[{{+ "status": "completed",+ "conclusion": "success",+ "headSha": "{}"+ }}]"#,+ head_sha+ );+ repo.setup_mock_gh_with_ci_data(pr_json, &run_json);++ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = make_snapshot_cmd(&repo, "list", &["--full"], None);+ repo.configure_mock_commands(&mut cmd);+ assert_cmd_snapshot!(cmd);+ });+}++/// Test CI status detection with workflow run in progress+#[rstest]+fn test_list_full_with_github_workflow_running(mut repo: TestRepo) {+ // Add GitHub remote+ repo.git_command(&[+ "remote",+ "add",+ "origin",+ "https://github.com/test-owner/test-repo.git",+ ])+ .output()+ .unwrap();++ // Create a feature branch and push it+ repo.add_worktree("feature");+ repo.push_branch("feature");++ // Get actual commit SHA so workflow run isn't marked as stale+ let head_sha = get_branch_sha(&repo, "feature");++ // Setup mock gh with workflow run in progress+ let pr_json = "[]"; // No PR+ let run_json = format!(+ r#"[{{+ "status": "in_progress",+ "conclusion": null,+ "headSha": "{}"+ }}]"#,+ head_sha+ );+ repo.setup_mock_gh_with_ci_data(pr_json, &run_json);++ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = make_snapshot_cmd(&repo, "list", &["--full"], None);+ repo.configure_mock_commands(&mut cmd);+ assert_cmd_snapshot!(cmd);+ });+}++/// Test CI status with stale PR (local HEAD differs from PR HEAD)+#[rstest]+fn test_list_full_with_stale_pr(mut repo: TestRepo) {+ // Add GitHub remote+ repo.git_command(&[+ "remote",+ "add",+ "origin",+ "https://github.com/test-owner/test-repo.git",+ ])+ .output()+ .unwrap();++ // Create a feature branch and push it+ repo.add_worktree("feature");+ repo.push_branch("feature");++ // Make additional commit locally (not pushed)+ let worktree_path = repo.worktrees.get("feature").unwrap();+ std::fs::write(worktree_path.join("new_file.txt"), "new content").unwrap();+ let mut cmd = Command::new("git");+ repo.configure_git_cmd(&mut cmd);+ cmd.args(["add", "."])+ .current_dir(worktree_path)+ .output()+ .unwrap();+ let mut cmd = Command::new("git");+ repo.configure_git_cmd(&mut cmd);+ cmd.args(["commit", "-m", "Local commit"])+ .current_dir(worktree_path)+ .output()+ .unwrap();++ // Setup mock gh with PR data - use fake SHA to simulate stale PR+ // (PR was created before the local commit, so PR HEAD differs from local HEAD)+ let pr_json = r#"[{+ "headRefOid": "old_sha_from_before_local_commit",+ "mergeStateStatus": "CLEAN",+ "statusCheckRollup": [+ {"status": "COMPLETED", "conclusion": "SUCCESS"}+ ],+ "url": "https://github.com/test-owner/test-repo/pull/1",+ "headRepositoryOwner": {"login": "test-owner"}+ }]"#;+ let run_json = "[]";+ repo.setup_mock_gh_with_ci_data(pr_json, run_json);++ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = make_snapshot_cmd(&repo, "list", &["--full"], None);+ repo.configure_mock_commands(&mut cmd);+ assert_cmd_snapshot!(cmd);+ });+}++/// Test CI status detection with mixed CheckRun and StatusContext results+#[rstest]+fn test_list_full_with_mixed_check_types(mut repo: TestRepo) {+ // Add GitHub remote+ repo.git_command(&[+ "remote",+ "add",+ "origin",+ "https://github.com/test-owner/test-repo.git",+ ])+ .output()+ .unwrap();++ // Create a feature branch and push it+ repo.add_worktree("feature");+ repo.push_branch("feature");++ // Get actual commit SHA so PR isn't marked as stale+ let head_sha = get_branch_sha(&repo, "feature");++ // Setup mock gh with mixed check types (CheckRun + StatusContext)+ // One passed CheckRun, one pending StatusContext+ let pr_json = format!(+ r#"[{{+ "headRefOid": "{}",+ "mergeStateStatus": "UNKNOWN",+ "statusCheckRollup": [+ {{"status": "COMPLETED", "conclusion": "SUCCESS"}},+ {{"state": "PENDING"}}+ ],+ "url": "https://github.com/test-owner/test-repo/pull/1",+ "headRepositoryOwner": {{"login": "test-owner"}}+ }}]"#,+ head_sha+ );+ let run_json = "[]";+ repo.setup_mock_gh_with_ci_data(&pr_json, run_json);++ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = make_snapshot_cmd(&repo, "list", &["--full"], None);+ repo.configure_mock_commands(&mut cmd);+ assert_cmd_snapshot!(cmd);+ });+}++/// Test CI status detection when PR has no checks configured+#[rstest]+fn test_list_full_with_no_ci_checks(mut repo: TestRepo) {+ // Add GitHub remote+ repo.git_command(&[+ "remote",+ "add",+ "origin",+ "https://github.com/test-owner/test-repo.git",+ ])+ .output()+ .unwrap();++ // Create a feature branch and push it+ repo.add_worktree("feature");+ repo.push_branch("feature");++ // Get actual commit SHA so PR isn't marked as stale+ let head_sha = get_branch_sha(&repo, "feature");++ // Setup mock gh with PR but no CI checks+ let pr_json = format!(+ r#"[{{+ "headRefOid": "{}",+ "mergeStateStatus": "CLEAN",+ "statusCheckRollup": [],+ "url": "https://github.com/test-owner/test-repo/pull/1",+ "headRepositoryOwner": {{"login": "test-owner"}}+ }}]"#,+ head_sha+ );+ let run_json = "[]";+ repo.setup_mock_gh_with_ci_data(&pr_json, run_json);++ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = make_snapshot_cmd(&repo, "list", &["--full"], None);+ repo.configure_mock_commands(&mut cmd);+ assert_cmd_snapshot!(cmd);+ });+}++/// Test filtering PRs by repository owner+#[rstest]+fn test_list_full_filters_by_repo_owner(mut repo: TestRepo) {+ // Add GitHub remote with specific owner+ repo.git_command(&[+ "remote",+ "add",+ "origin",+ "https://github.com/my-org/test-repo.git",+ ])+ .output()+ .unwrap();++ // Create a feature branch and push it+ repo.add_worktree("feature");+ repo.push_branch("feature");++ // Get actual commit SHA so PR isn't marked as stale+ let head_sha = get_branch_sha(&repo, "feature");++ // Setup mock gh with multiple PRs - only one from our org+ // The first PR is from a different org, second is from our org+ let pr_json = format!(+ r#"[+ {{+ "headRefOid": "wrong_sha",+ "mergeStateStatus": "CLEAN",+ "statusCheckRollup": [{{"status": "COMPLETED", "conclusion": "FAILURE"}}],+ "url": "https://github.com/other-org/test-repo/pull/99",+ "headRepositoryOwner": {{"login": "other-org"}}+ }},+ {{+ "headRefOid": "{}",+ "mergeStateStatus": "CLEAN",+ "statusCheckRollup": [{{"status": "COMPLETED", "conclusion": "SUCCESS"}}],+ "url": "https://github.com/my-org/test-repo/pull/1",+ "headRepositoryOwner": {{"login": "my-org"}}+ }}+ ]"#,+ head_sha+ );+ let run_json = "[]";+ repo.setup_mock_gh_with_ci_data(&pr_json, run_json);++ let settings = setup_snapshot_settings(&repo);+ settings.bind(|| {+ let mut cmd = make_snapshot_cmd(&repo, "list", &["--full"], None);+ repo.configure_mock_commands(&mut cmd);+ // Should show passed (green) because it filters to my-org's PR+ assert_cmd_snapshot!(cmd);+ });+}diff --git a/tests/integration_tests/mod.rs b/tests/integration_tests/mod.rsindex e03f6deb2..15f7d2056 100644--- a/tests/integration_tests/mod.rs+++ b/tests/integration_tests/mod.rs@@ -11,6 +11,7 @@ pub mod approval_save;pub mod approval_ui;pub mod approvals;pub mod bare_repository;+pub mod ci_status;pub mod column_alignment_verification;pub mod completion;pub mod completion_validation;diff --git a/tests/integration_tests/select.rs b/tests/integration_tests/select.rsindex 9b7f08fc9..832756131 100644--- a/tests/integration_tests/select.rs+++ b/tests/integration_tests/select.rs@@ -22,7 +22,7 @@use crate::common::{TestRepo, repo};use insta::assert_snapshot;use insta_cmd::get_cargo_bin;-use portable_pty::{CommandBuilder, PtySize};+use portable_pty::CommandBuilder;use rstest::rstest;use std::io::{Read, Write};use std::path::Path;@@ -100,15 +100,7 @@ fn exec_in_pty_with_input_expectations(env_vars: &[(String, String)],inputs: &[(&str, Option<&str>)],) -> (Vec<u8>, i32) {- let pty_system = crate::common::native_pty_system();- let pair = pty_system- .openpty(PtySize {- rows: TERM_ROWS,- cols: TERM_COLS,- pixel_width: 0,- pixel_height: 0,- })- .unwrap();+ let pair = crate::common::open_pty_with_size(TERM_ROWS, TERM_COLS);let mut cmd = CommandBuilder::new(command);for arg in args {@@ -116,16 +108,8 @@ fn exec_in_pty_with_input_expectations(}cmd.cwd(working_dir);- // Set minimal environment- cmd.env_clear();- cmd.env(- "HOME",- home::home_dir().unwrap().to_string_lossy().to_string(),- );- cmd.env(- "PATH",- std::env::var("PATH").unwrap_or_else(|_| "/usr/bin:/bin".to_string()),- );+ // Set up isolated environment with coverage passthrough+ crate::common::configure_pty_command(&mut cmd);cmd.env("CLICOLOR_FORCE", "1");cmd.env("TERM", "xterm-256color");diff --git a/tests/integration_tests/shell_wrapper.rs b/tests/integration_tests/shell_wrapper.rsindex 24c6dbce1..84ed40f5a 100644--- a/tests/integration_tests/shell_wrapper.rs+++ b/tests/integration_tests/shell_wrapper.rs@@ -351,22 +351,11 @@ fn exec_in_pty_interactive(env_vars: &[(&str, &str)],inputs: &[&str],) -> (String, i32) {- use portable_pty::{CommandBuilder, PtySize};+ use portable_pty::CommandBuilder;use std::io::{Read, Write};- // Ignore SIGTTIN/SIGTTOU to prevent stopping in background process groups- // The guard restores the tty foreground pgrp on drop if it was changed- let pty_system = crate::common::native_pty_system();- let pair = pty_system- .openpty(PtySize {- rows: 48,- cols: 200,- pixel_width: 0,- pixel_height: 0,- })- .unwrap();+ let pair = crate::common::open_pty();- // Spawn the shell inside the PTYlet mut cmd = CommandBuilder::new(shell);// Clear inherited environment for test isolation@@ -411,6 +400,9 @@ fn exec_in_pty_interactive(cmd.env(key, value);}+ // Pass through LLVM coverage env vars for subprocess coverage collection+ crate::common::pass_coverage_env_to_pty_cmd(&mut cmd);+let mut child = pair.slave.spawn_command(cmd).unwrap();drop(pair.slave); // Close slave in parent@@ -451,7 +443,7 @@ fn exec_bash_truly_interactive(working_dir: &std::path::Path,env_vars: &[(&str, &str)],) -> (String, i32) {- use portable_pty::{CommandBuilder, PtySize};+ use portable_pty::CommandBuilder;use std::io::{Read, Write};use std::thread;use std::time::Duration;@@ -461,15 +453,7 @@ fn exec_bash_truly_interactive(let script_path = tmp_dir.path().join("setup.sh");fs::write(&script_path, setup_script).unwrap();- let pty_system = crate::common::native_pty_system();- let pair = pty_system- .openpty(PtySize {- rows: 48,- cols: 200,- pixel_width: 0,- pixel_height: 0,- })- .unwrap();+ let pair = crate::common::open_pty();// Spawn bash in true interactive mode using env to pass flags// (portable_pty's CommandBuilder can have issues with flag parsing)@@ -503,6 +487,9 @@ fn exec_bash_truly_interactive(cmd.env(key, value);}+ // Pass through LLVM coverage env vars for subprocess coverage collection+ crate::common::pass_coverage_env_to_pty_cmd(&mut cmd);+let mut child = pair.slave.spawn_command(cmd).unwrap();drop(pair.slave); // Close slave in parent@@ -2456,7 +2443,7 @@ fi/// The shell integration hint is truncated from the output.#[rstest]fn test_readme_example_approval_prompt(repo: TestRepo) {- use portable_pty::{CommandBuilder, PtySize};+ use portable_pty::CommandBuilder;use std::io::{Read, Write};// Create project config with named post-create commands@@ -2469,17 +2456,7 @@ test = "echo 'Running tests...'");repo.commit("Add config");- // Direct PTY execution (not through shell wrapper) for interactive prompt- // Ignore SIGTTIN/SIGTTOU to prevent stopping in background process groups- let pty_system = crate::common::native_pty_system();- let pair = pty_system- .openpty(PtySize {- rows: 48,- cols: 200,- pixel_width: 0,- pixel_height: 0,- })- .unwrap();+ let pair = crate::common::open_pty();let cargo_bin = get_cargo_bin("wt");let mut cmd = CommandBuilder::new(cargo_bin);@@ -2502,6 +2479,9 @@ test = "echo 'Running tests...'"cmd.env(key, value);}+ // Pass through LLVM coverage env vars for subprocess coverage collection+ crate::common::pass_coverage_env_to_pty_cmd(&mut cmd);+let mut child = pair.slave.spawn_command(cmd).unwrap();drop(pair.slave);@@ -2569,7 +2549,6 @@ test = "echo 'Running tests...'"/// - Completion output being executed as commands (the COMPLETE mode bug)#[rstest]fn test_bash_completion_produces_correct_output(repo: TestRepo) {- use portable_pty::{CommandBuilder, PtySize};use std::io::Read;let wt_bin = get_cargo_bin("wt");@@ -2646,34 +2625,9 @@ fiwrapper_script = wrapper_script);- // Execute in PTY- // Ignore SIGTTIN/SIGTTOU to prevent stopping in background process groups- let pty_system = crate::common::native_pty_system();- let pair = pty_system- .openpty(PtySize {- rows: 48,- cols: 200,- pixel_width: 0,- pixel_height: 0,- })- .unwrap();+ let pair = crate::common::open_pty();- let mut cmd = CommandBuilder::new("bash");- cmd.env_clear();- cmd.env(- "HOME",- home::home_dir().unwrap().to_string_lossy().to_string(),- );- cmd.env(- "PATH",- format!(- "{}:{}",- wt_bin_dir.display(),- std::env::var("PATH").unwrap_or_else(|_| "/usr/bin:/bin".to_string())- ),- );- cmd.arg("--norc");- cmd.arg("--noprofile");+ let mut cmd = crate::common::shell_command("bash", Some(wt_bin_dir));cmd.arg("-c");cmd.arg(&script);cmd.cwd(repo.root_path());@@ -2731,7 +2685,6 @@ fi/// wt command with COMPLETE=zsh produces completion candidates.#[rstest]fn test_zsh_completion_produces_correct_output(repo: TestRepo) {- use portable_pty::{CommandBuilder, PtySize};use std::io::Read;let wt_bin = get_cargo_bin("wt");@@ -2797,38 +2750,9 @@ fiwrapper_script = wrapper_script);- // Execute in PTY- // Ignore SIGTTIN/SIGTTOU to prevent stopping in background process groups- let pty_system = crate::common::native_pty_system();- let pair = pty_system- .openpty(PtySize {- rows: 48,- cols: 200,- pixel_width: 0,- pixel_height: 0,- })- .unwrap();+ let pair = crate::common::open_pty();- let mut cmd = CommandBuilder::new("zsh");- cmd.env_clear();- cmd.env(- "HOME",- home::home_dir().unwrap().to_string_lossy().to_string(),- );- cmd.env(- "PATH",- format!(- "{}:{}",- wt_bin_dir.display(),- std::env::var("PATH").unwrap_or_else(|_| "/usr/bin:/bin".to_string())- ),- );- cmd.env("ZDOTDIR", "/dev/null");- cmd.arg("--no-rcs");- cmd.arg("-o");- cmd.arg("NO_GLOBAL_RCS");- cmd.arg("-o");- cmd.arg("NO_RCS");+ let mut cmd = crate::common::shell_command("zsh", Some(wt_bin_dir));cmd.arg("-c");cmd.arg(&script);cmd.cwd(repo.root_path());@@ -3000,7 +2924,6 @@ for c in "${{COMPREPLY[@]}}"; do echo "${{c%% *}}"; done#[case("fish")]fn test_wrapper_help_redirect_captures_all_output(#[case] shell: &str, repo: TestRepo) {skip_if_shell_unavailable!(shell);- use portable_pty::{CommandBuilder, PtySize};use std::io::Read;let wt_bin = get_cargo_bin("wt");@@ -3080,53 +3003,9 @@ echo "SCRIPT_COMPLETED"),};- // Execute in PTY- // Ignore SIGTTIN/SIGTTOU to prevent stopping in background process groups- let pty_system = crate::common::native_pty_system();- let pair = pty_system- .openpty(PtySize {- rows: 48,- cols: 200,- pixel_width: 0,- pixel_height: 0,- })- .unwrap();-- let mut cmd = CommandBuilder::new(shell);- cmd.env_clear();- cmd.env(- "HOME",- home::home_dir().unwrap().to_string_lossy().to_string(),- );- cmd.env(- "PATH",- format!(- "{}:{}",- wt_bin_dir.display(),- std::env::var("PATH").unwrap_or_else(|_| "/usr/bin:/bin".to_string())- ),- );-- // Shell-specific flags for isolation- match shell {- "zsh" => {- cmd.env("ZDOTDIR", "/dev/null");- cmd.arg("--no-rcs");- cmd.arg("-o");- cmd.arg("NO_GLOBAL_RCS");- cmd.arg("-o");- cmd.arg("NO_RCS");- }- "bash" => {- cmd.arg("--norc");- cmd.arg("--noprofile");- }- "fish" => {- cmd.arg("--no-config");- }- _ => {}- }+ let pair = crate::common::open_pty();+ let mut cmd = crate::common::shell_command(shell, Some(wt_bin_dir));cmd.arg("-c");cmd.arg(&script);cmd.cwd(repo.root_path());@@ -3196,7 +3075,6 @@ echo "SCRIPT_COMPLETED"#[case("fish")]fn test_wrapper_help_interactive_uses_pager(#[case] shell: &str, repo: TestRepo) {skip_if_shell_unavailable!(shell);- use portable_pty::{CommandBuilder, PtySize};use std::io::Read;let wt_bin = get_cargo_bin("wt");@@ -3292,53 +3170,9 @@ echo "SCRIPT_COMPLETED"),};- // Execute in PTY (simulates interactive terminal)- // Ignore SIGTTIN/SIGTTOU to prevent stopping in background process groups- let pty_system = crate::common::native_pty_system();- let pair = pty_system- .openpty(PtySize {- rows: 48,- cols: 200,- pixel_width: 0,- pixel_height: 0,- })- .unwrap();-- let mut cmd = CommandBuilder::new(shell);- cmd.env_clear();- cmd.env(- "HOME",- home::home_dir().unwrap().to_string_lossy().to_string(),- );- cmd.env(- "PATH",- format!(- "{}:{}",- wt_bin_dir.display(),- std::env::var("PATH").unwrap_or_else(|_| "/usr/bin:/bin".to_string())- ),- );-- // Shell-specific flags for isolation- match shell {- "zsh" => {- cmd.env("ZDOTDIR", "/dev/null");- cmd.arg("--no-rcs");- cmd.arg("-o");- cmd.arg("NO_GLOBAL_RCS");- cmd.arg("-o");- cmd.arg("NO_RCS");- }- "bash" => {- cmd.arg("--norc");- cmd.arg("--noprofile");- }- "fish" => {- cmd.arg("--no-config");- }- _ => {}- }+ let pair = crate::common::open_pty();+ let mut cmd = crate::common::shell_command(shell, Some(wt_bin_dir));cmd.arg("-c");cmd.arg(&script);cmd.cwd(repo.root_path());diff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_filters_by_repo_owner.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_filters_by_repo_owner.snapnew file mode 100644index 000000000..f3d7cc221--- /dev/null+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_filters_by_repo_owner.snap@@ -0,0 +1,35 @@+---+source: tests/integration_tests/ci_status.rs+info:+ program: wt+ args:+ - list+ - "--full"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "150"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage+@ [1mmain[0m [2m^[22m [1m./repo[0m [4m[32m]8;;https://github.com/my-org/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m./repo.feature[0m [4m[32m]8;;https://github.com/my-org/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++⚪ [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_conflicts.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_conflicts.snapnew file mode 100644index 000000000..219150300--- /dev/null+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_conflicts.snap@@ -0,0 +1,35 @@+---+source: tests/integration_tests/ci_status.rs+info:+ program: wt+ args:+ - list+ - "--full"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "150"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage+@ [1mmain[0m [2m^[22m [1m./repo[0m [4m[33m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m./repo.feature[0m [4m[33m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++⚪ [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_failed.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_failed.snapnew file mode 100644index 000000000..267e891a4--- /dev/null+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_failed.snap@@ -0,0 +1,35 @@+---+source: tests/integration_tests/ci_status.rs+info:+ program: wt+ args:+ - list+ - "--full"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "150"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage+@ [1mmain[0m [2m^[22m [1m./repo[0m [4m[31m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m./repo.feature[0m [4m[31m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++⚪ [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_passed.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_passed.snapnew file mode 100644index 000000000..fcc2bc10e--- /dev/null+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_passed.snap@@ -0,0 +1,35 @@+---+source: tests/integration_tests/ci_status.rs+info:+ program: wt+ args:+ - list+ - "--full"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "150"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage+@ [1mmain[0m [2m^[22m [1m./repo[0m [4m[32m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m./repo.feature[0m [4m[32m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++⚪ [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_running.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_running.snapnew file mode 100644index 000000000..60815ceb6--- /dev/null+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_pr_running.snap@@ -0,0 +1,35 @@+---+source: tests/integration_tests/ci_status.rs+info:+ program: wt+ args:+ - list+ - "--full"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "150"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage+@ [1mmain[0m [2m^[22m [1m./repo[0m [4m[34m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m./repo.feature[0m [4m[34m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++⚪ [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_workflow_run.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_workflow_run.snapnew file mode 100644index 000000000..a54ef760c--- /dev/null+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_workflow_run.snap@@ -0,0 +1,35 @@+---+source: tests/integration_tests/ci_status.rs+info:+ program: wt+ args:+ - list+ - "--full"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "150"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage+@ [1mmain[0m [2m^[22m [1m./repo[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m./repo.feature[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++⚪ [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_workflow_running.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_workflow_running.snapnew file mode 100644index 000000000..a54ef760c--- /dev/null+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_github_workflow_running.snap@@ -0,0 +1,35 @@+---+source: tests/integration_tests/ci_status.rs+info:+ program: wt+ args:+ - list+ - "--full"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "150"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage+@ [1mmain[0m [2m^[22m [1m./repo[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m./repo.feature[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++⚪ [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_mixed_check_types.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_mixed_check_types.snapnew file mode 100644index 000000000..60815ceb6--- /dev/null+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_mixed_check_types.snap@@ -0,0 +1,35 @@+---+source: tests/integration_tests/ci_status.rs+info:+ program: wt+ args:+ - list+ - "--full"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "150"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage+@ [1mmain[0m [2m^[22m [1m./repo[0m [4m[34m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m./repo.feature[0m [4m[34m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++⚪ [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_no_ci_checks.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_no_ci_checks.snapnew file mode 100644index 000000000..7b247cc86--- /dev/null+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_no_ci_checks.snap@@ -0,0 +1,35 @@+---+source: tests/integration_tests/ci_status.rs+info:+ program: wt+ args:+ - list+ - "--full"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "150"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage+@ [1mmain[0m [2m^[22m [1m./repo[0m [4m[90m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m./repo.feature[0m [4m[90m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++⚪ [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_stale_pr.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_stale_pr.snapnew file mode 100644index 000000000..34cf23494--- /dev/null+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_stale_pr.snap@@ -0,0 +1,35 @@+---+source: tests/integration_tests/ci_status.rs+info:+ program: wt+ args:+ - list+ - "--full"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "150"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage+@ [1mmain[0m [2m^[22m [1m./repo[0m [2m[4m[32m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ feature [2m↑[22m [32m↑1[0m [32m+1[0m ./repo.feature [2m[4m[32m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2m1b2eaadd[0m [2m1d[0m [2mLocal commit++⚪ [2mShowing 2 worktrees, 1 aheaddiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_status_context_failure.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_status_context_failure.snapnew file mode 100644index 000000000..267e891a4--- /dev/null+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_status_context_failure.snap@@ -0,0 +1,35 @@+---+source: tests/integration_tests/ci_status.rs+info:+ program: wt+ args:+ - list+ - "--full"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "150"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage+@ [1mmain[0m [2m^[22m [1m./repo[0m [4m[31m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m./repo.feature[0m [4m[31m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++⚪ [2mShowing 2 worktreesdiff --git a/tests/snapshots/integration__integration_tests__ci_status__list_full_with_status_context_pending.snap b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_status_context_pending.snapnew file mode 100644index 000000000..60815ceb6--- /dev/null+++ b/tests/snapshots/integration__integration_tests__ci_status__list_full_with_status_context_pending.snap@@ -0,0 +1,35 @@+---+source: tests/integration_tests/ci_status.rs+info:+ program: wt+ args:+ - list+ - "--full"+ env:+ APPDATA: "[TEST_CONFIG_HOME]"+ CLICOLOR_FORCE: "1"+ COLUMNS: "150"+ GIT_AUTHOR_DATE: "2025-01-01T00:00:00Z"+ GIT_COMMITTER_DATE: "2025-01-01T00:00:00Z"+ GIT_CONFIG_GLOBAL: "[TEST_GIT_CONFIG]"+ GIT_CONFIG_SYSTEM: /dev/null+ GIT_EDITOR: ""+ HOME: "[TEST_HOME]"+ LANG: C+ LC_ALL: C+ PATH: "[PATH]"+ SOURCE_DATE_EPOCH: "1735776000"+ USERPROFILE: "[TEST_HOME]"+ WORKTRUNK_CONFIG_PATH: "[TEST_CONFIG]"+ XDG_CONFIG_HOME: "[TEST_CONFIG_HOME]"+---+success: true+exit_code: 0+----- stdout -----++----- stderr -----+ [1mBranch[0m [1mStatus[0m [1mHEAD±[0m [1mmain↕[0m [1mmain…±[0m [1mPath[0m [1mRemote⇅[0m [1mCI[0m [1mCommit[0m [1mAge[0m [1mMessage+@ [1mmain[0m [2m^[22m [1m./repo[0m [4m[34m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++ [2mfeature[0m [2m_[22m [2m./repo.feature[0m [4m[34m]8;;https://github.com/test-owner/test-repo/pull/1/●]8;;/[0m [2ma1e809f5[0m [2m1d[0m [2mInitial commit++⚪ [2mShowing 2 worktrees