Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Cmd::new("gh").args(["pr", "list"]).run()?; // no context for standalone tools

### Git-Discovery Env Vars Follow Who Chose the Cwd

Git resolves `GIT_DIR`/`GIT_WORK_TREE` (and the rest of `INHERITED_GIT_PATH_VARS`) before walking up from the cwd, so an inherited value silently overrides a child's working directory. **Any spawn site that relocates a user command into a `wt`-chosen worktree — hooks, `wt step for-each`, the `--execute` no-integration fallback — must scrub these vars** (`Cmd::scrub_git_discovery_env` or `scrub_git_discovery_env_vars`); children running in the user's own context (aliases, `commit.generation`) and `wt`'s internal git plumbing keep the inherited context (absolutized). Full site classification and rationale: `scrub_git_discovery_env_vars` in `src/shell_exec.rs`.
Git resolves `GIT_DIR`/`GIT_WORK_TREE` (and the rest of `INHERITED_GIT_PATH_VARS`) before walking up from the cwd, so an inherited value silently overrides a child's working directory. **Any spawn site that relocates a user command into a `wt`-chosen worktree — hooks, `wt step for-each`, the `--execute` program — must scrub these vars** (`Cmd::scrub_git_discovery_env` or `scrub_git_discovery_env_vars`); children running in the user's own context (aliases, `commit.generation`) and `wt`'s internal git plumbing keep the inherited context (absolutized). Full site classification and rationale: `scrub_git_discovery_env_vars` in `src/shell_exec.rs`.

### Real-time Output Streaming

Expand Down
13 changes: 7 additions & 6 deletions src/commands/list/ci_status/gitlab.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,19 +296,20 @@ pub(super) fn detect_gitlab_pipeline(
})
}

/// The `author` object nested in a `glab mr list` entry.
#[derive(Debug, Default, Deserialize)]
struct GitLabMrAuthor {
#[serde(default)]
username: String,
}

/// Basic MR info from `glab mr list --output json`.
///
/// Note: `glab mr list` does NOT return `head_pipeline` or `pipeline` fields.
/// Use [`fetch_mr_details`] with the `iid` to get complete MR info.
///
/// We include `source_project_id` for client-side filtering by source project.
/// See the `# Filtering Strategy` docs on [`detect_gitlab`] for why we filter by source, not by author.
#[derive(Debug, Default, Deserialize)]
struct GitLabMrAuthor {
#[serde(default)]
username: String,
}

#[derive(Debug, Deserialize)]
struct GitLabMrListEntry {
/// The internal MR ID (used to fetch full details via `glab mr view <iid>`)
Expand Down
2 changes: 1 addition & 1 deletion src/md_help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ fn render_inline_formatting(line: &str) -> String {

/// Add colors to status symbols in help text (matching wt list output colors)
fn colorize_status_symbols(text: &str) -> String {
// Define semantic styles matching src/commands/list/model.rs StatusSymbols::styled_symbols
// Define semantic styles matching src/commands/list/model/status_symbols.rs StatusSymbols::styled_symbols
let error = Style::new().fg_color(Some(AnsiStyleColor::Ansi(AnsiColor::Red)));
let warning = Style::new().fg_color(Some(AnsiStyleColor::Ansi(AnsiColor::Yellow)));
let success = Style::new().fg_color(Some(AnsiStyleColor::Ansi(AnsiColor::Green)));
Expand Down
Loading