question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Show a "View Branch in Editor" button for PRs

See original GitHub issue

Description

Add a button to PRs that allow you to quickly open VS Code for the branch being reviewed on github.dev.

I find it useful when reviewing big PRs to take a look at a specific branch in the web editor, so I don’t have to download the branch locally.

For any given branch in a repo, you can simply open the VS Code web editor provided by GitHub with this URL structure:

https://github.dev/{username}/{repo}/tree/{branch}

Example editor on Django: https://github.dev/django/django/tree/stable/4.1.x

Screenshot

CleanShot 2022-05-24 at 14 17 31@2x

Example URL

https://github.com/django/django/pull/15730

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
fregantecommented, May 24, 2022

I have good news! The button is already on your keyboard and you can find it by the symbol <kbd>.</kbd>; it works on any repo, folder, file or PR

5xpK0Q4lsp0lTU_q

0reactions
yakov116commented, May 24, 2022

Its coming soon directly from GH, its called code spaces.

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Keeping your pull request in sync with the base branch
Click the update branch drop down menu, click Update with rebase, and then click Rebase branch to update by rebasing on the base...
Read more >
View, filter, and open pull requests - Azure Repos
To list PRs in a specific repository in a project, go to that project in the web portal and select Repos > Pull...
Read more >
Using plan branches | Bamboo Data Center and Server 9.1
Plan branches are used to represent a branch in your version control repository, with the plan branch using the same build configuration as ......
Read more >
Branches - Redocly
The Overview page for each version shows the primary branch and up to five ... In the Version source section, select the Edit...
Read more >
GitHub pull request showing commits that are already in target ...
Here's a good workaround. Use the Edit button when viewing the PR in GitHub to change the base branch to something other than...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found