Conversation
Display PR/MR details after fetching: - Title (bold) with PR/MR number - Author, state (open/closed/merged), draft status if applicable - URL as hint at end of output Example output: ◎ Fetching PR #101... ○ Fix authentication bug in login flow (#101) by @alice · open ◎ Fetching feature-auth from origin... ✓ Created worktree for feature-auth @ ~/repo.feature-auth ↳ https://github.com/owner/test-repo/pull/101 Co-Authored-By: Claude <noreply@anthropic.com>
Resolved conflicts in switch.rs by integrating PR/MR context display into main's refactored resolve_pr_ref and resolve_mr_ref functions. Co-Authored-By: Claude <noreply@anthropic.com>
When checking out with `wt switch pr:N` or `wt switch mr:N`, display PR/MR context (title, author, state, URL) as gutter content under the "Fetching PR #N..." progress message: ``` ◎ Fetching PR #101... ┃ Fix authentication bug in login flow (#101) ┃ by @alice · open · https://github.com/owner/repo/pull/101 ◎ Fetching feature-auth from origin... ``` This keeps related information grouped together and treats the PR info as the "response" from the fetch operation. Also removes unused `pr_mr_url` field that was being threaded through SwitchPlan and SwitchResult types - the URL is now displayed immediately when fetched rather than deferred to output handlers. Co-Authored-By: Claude <noreply@anthropic.com>
# Conflicts: # tests/snapshots/integration__integration_tests__switch__switch_pr_fork_existing_different_pr.snap # tests/snapshots/integration__integration_tests__switch__switch_pr_fork_existing_no_tracking.snap
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Add RefContext trait with common display fields (number, title, author, state, draft, url) implemented by both PrInfo and MrInfo. Replace the duplicate format_pr_context and format_mr_context functions with a single format_ref_context function. Co-Authored-By: Claude <noreply@anthropic.com>
The prefixed fork tests were merged from main with mocks missing the new title/user/state/draft fields, causing JSON parse failures. Co-Authored-By: Claude <noreply@anthropic.com>
worktrunk-bot
pushed a commit
that referenced
this pull request
Jan 22, 2026
The PR #782 merged to main introduced unreferenced snapshot files that caused CI to fail with `--unreferenced reject`. These snapshot files were not referenced by any tests and needed to be cleaned up. Removed 48 unreferenced help snapshot files from tests/snapshots/. Fixes CI failure from run 21230601354. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
wt switch pr:Norwt switch mr:Npr_mr_urlfield threading through SwitchPlan/SwitchResult typesBefore:
After:
Test plan
cargo test --test integration -- switch(122 tests pass)cargo test --lib --bins --test integration(912 tests pass)pre-commit run --all-filespasses🤖 Generated with Claude Code