Skip to content

feat: improve dev shellenv and link PR branches to origin#37

Closed
brosu wants to merge 2 commits intotimvw:mainfrom
brosu:feat/pr-branch-link
Closed

feat: improve dev shellenv and link PR branches to origin#37
brosu wants to merge 2 commits intotimvw:mainfrom
brosu:feat/pr-branch-link

Conversation

@brosu
Copy link

@brosu brosu commented Jan 31, 2026

Summary

  • Add just dev-shellenv helper for running from source with shell completion in any directory
  • Generate a local go.work (ignored) to keep go run working outside the wt repo
  • Link wt pr worktree branches to the PR’s origin/ when available
  • Document dev-shellenv usage in Development section

Testing

  • Not added (no existing test coverage for gh/remote PR flows)

@timvw
Copy link
Owner

timvw commented Feb 8, 2026

Hey @brosu, thanks for this PR! The ideas here were solid — both the dev-shellenv recipe and the branch linking logic.

I only noticed this PR after I'd already merged #39, which refactored wt pr/wt mr to look up the actual branch name from the PR/MR (instead of using pr-N/mr-N). That made the linkGitHubPRBranch function here largely redundant, since the new flow already fetches and tracks the real branch.

The good news is that all the useful parts from this PR have now been covered across three follow-up PRs:

Closing this one since everything is covered. Thanks again for the contribution!

@timvw timvw closed this Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants