Something went wrong while fetching comments. Please try again.
Created by: abeatrix
Close https://github.com/sourcegraph/sourcegraph/issues/34591
This PR implements a function to check if the current branch exists on the sourcegraph instance
If the user is currently on a branch that does not exist remotely, the links-commands will open the repo using the "HEAD" (aka main) branch unless a default branch has been set
For local files, users can choose between open / copy the main branch and the current branch.
For remote files, only current branch is available:
Manually tested. See loom video
Check out the client app preview documentation to learn more.