Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
docs: improve ci-status documentation clarity (#794)
Maximilian Roos9a817b63904a
diff --git a/.claude-plugin/skills/worktrunk/reference/config.md b/.claude-plugin/skills/worktrunk/reference/config.mdindex 11c3a817b..e96168eb9 100644--- a/.claude-plugin/skills/worktrunk/reference/config.md+++ b/.claude-plugin/skills/worktrunk/reference/config.md@@ -596,12 +596,11 @@ CI status cache.Caches GitHub/GitLab CI status for display in [`wt list`](https://worktrunk.dev/list/#ci-status).-### How it works+Requires `gh` (GitHub) or `glab` (GitLab) CLI, authenticated. Platform auto-detects from remote URL; override with `ci.platform = "github"` in `.config/wt.toml` for self-hosted instances.-1. **Platform detection** — From `[ci] platform` in project config, or detected from remote URL (github.com → GitHub, gitlab.com → GitLab)-2. **CLI requirement** — Requires `gh` (GitHub) or `glab` (GitLab) CLI, authenticated-3. **What's checked** — PRs/MRs first, then branch pipelines for branches with upstream-4. **Caching** — Results cached 30-60 seconds per branch+commit+Checks open PRs/MRs first, then branch pipelines for branches with upstream. Local-only branches (no remote tracking) show blank.++Results cache for 30-60 seconds. Indicators dim when local changes haven't been pushed.### Status valuesdiff --git a/docs/content/config.md b/docs/content/config.mdindex 33dd09e34..9b04e3cb4 100644--- a/docs/content/config.md+++ b/docs/content/config.md@@ -612,12 +612,11 @@ CI status cache.Caches GitHub/GitLab CI status for display in [`wt list`](@/list.md#ci-status).-### How it works+Requires `gh` (GitHub) or `glab` (GitLab) CLI, authenticated. Platform auto-detects from remote URL; override with `ci.platform = "github"` in `.config/wt.toml` for self-hosted instances.-1. **Platform detection** — From `[ci] platform` in project config, or detected from remote URL (github.com → GitHub, gitlab.com → GitLab)-2. **CLI requirement** — Requires `gh` (GitHub) or `glab` (GitLab) CLI, authenticated-3. **What's checked** — PRs/MRs first, then branch pipelines for branches with upstream-4. **Caching** — Results cached 30-60 seconds per branch+commit+Checks open PRs/MRs first, then branch pipelines for branches with upstream. Local-only branches (no remote tracking) show blank.++Results cache for 30-60 seconds. Indicators dim when local changes haven't been pushed.### Status valuesdiff --git a/src/cli/config.rs b/src/cli/config.rsindex e6ecc9cf3..f6b7ac80f 100644--- a/src/cli/config.rs+++ b/src/cli/config.rs@@ -341,12 +341,11 @@ Without a subcommand, runs `get`. Use `set` to override or `clear` to reset."#name = "ci-status",after_long_help = r#"Caches GitHub/GitLab CI status for display in [`wt list`](@/list.md#ci-status).-## How it works+Requires `gh` (GitHub) or `glab` (GitLab) CLI, authenticated. Platform auto-detects from remote URL; override with `ci.platform = "github"` in `.config/wt.toml` for self-hosted instances.++Checks open PRs/MRs first, then branch pipelines for branches with upstream. Local-only branches (no remote tracking) show blank.-1. **Platform detection** — From `[ci] platform` in project config, or detected from remote URL (github.com → GitHub, gitlab.com → GitLab)-2. **CLI requirement** — Requires `gh` (GitHub) or `glab` (GitLab) CLI, authenticated-3. **What's checked** — PRs/MRs first, then branch pipelines for branches with upstream-4. **Caching** — Results cached 30-60 seconds per branch+commit+Results cache for 30-60 seconds. Indicators dim when local changes haven't been pushed.## Status valuesdiff --git a/tests/snapshots/integration__integration_tests__help__help_config_state_ci_status.snap b/tests/snapshots/integration__integration_tests__help__help_config_state_ci_status.snapindex 810e59951..062ccccd2 100644--- a/tests/snapshots/integration__integration_tests__help__help_config_state_ci_status.snap+++ b/tests/snapshots/integration__integration_tests__help__help_config_state_ci_status.snap@@ -48,12 +48,11 @@ Usage: [1m[36mwt config state ci-status[0m [36m[OPTIONS][0m [36m[COMMAND]Caches GitHub/GitLab CI status for display in [2mwt list[0m.-[1m[32mHow it works[0m+Requires [2mgh[0m (GitHub) or [2mglab[0m (GitLab) CLI, authenticated. Platform auto-detects from remote URL; override with [2mci.platform = "github"[0m in [2m.config/wt.toml[0m for self-hosted instances.-1. [1mPlatform detection[0m — From [2m[ci] platform[0m in project config, or detected from remote URL (github.com → GitHub, gitlab.com → GitLab)-2. [1mCLI requirement[0m — Requires [2mgh[0m (GitHub) or [2mglab[0m (GitLab) CLI, authenticated-3. [1mWhat's checked[0m — PRs/MRs first, then branch pipelines for branches with upstream-4. [1mCaching[0m — Results cached 30-60 seconds per branch+commit+Checks open PRs/MRs first, then branch pipelines for branches with upstream. Local-only branches (no remote tracking) show blank.++Results cache for 30-60 seconds. Indicators dim when local changes haven't been pushed.[1m[32mStatus values[0m