Skip to content

Attempts to pre-open PR branch when using Switch or Open in Worktree#3635

Merged
ramin-t merged 1 commit intomainfrom
debt/open-in-worktree-pr-repo-location
Oct 1, 2024
Merged

Attempts to pre-open PR branch when using Switch or Open in Worktree#3635
ramin-t merged 1 commit intomainfrom
debt/open-in-worktree-pr-repo-location

Conversation

@ramin-t
Copy link
Contributor

@ramin-t ramin-t commented Oct 1, 2024

Closes #3627

Leverages getOrOpenPullRequestRepository to try to pre-identify the PR's repo, which then skips the "repo match" step in the deep link flow.

Note: this has undesirable effects with virtual repos, so I added a skipVirtual open to skip opening virtual uris for now. A bigger refactor of target opening logic (moving it out of the deep link service into its own service) will probably include better virtual repo support in the flow, but for now it doesn't work for most cases of Open in Worktree.

@ramin-t ramin-t requested a review from eamodio October 1, 2024 17:08
@ramin-t ramin-t added area-launchpad Issues or features related to Launchpad debt Technical debt labels Oct 1, 2024
Copy link
Member

@eamodio eamodio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@ramin-t ramin-t merged commit 7cd77ff into main Oct 1, 2024
@ramin-t ramin-t deleted the debt/open-in-worktree-pr-repo-location branch October 1, 2024 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-launchpad Issues or features related to Launchpad debt Technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve repo location in Deep Link service for PRs

2 participants