Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Open in Browser" to Repository menu to view GitLab (or other) repository online #17846

Open
joyfullservice opened this issue Dec 8, 2023 · 1 comment · May be fixed by #17867
Open

Add "Open in Browser" to Repository menu to view GitLab (or other) repository online #17846

joyfullservice opened this issue Dec 8, 2023 · 1 comment · May be fixed by #17867

Comments

@joyfullservice
Copy link

The feature request

It would be super handy to have a quick way to open online GitLab repository homepage from the repository menu. I am often using GitHub Desktop to jump between dozens of projects in my development work. As I am committing various changes, sometimes I would like to quickly add an issue to the project, or review the history of a specific file. We have this feature for GitHub repositories, which is awesome, but it would be great to extend this to work with other online repositories as well, such as GitLab.

Currently I have to go to my browser, navigate to the GitLab site (either GitLab.com, or our internally hosted instance), search or browse to find the project, and then continue with what I was trying to do. It would be really nice if I could just jump right there from a menu item in the GitHub Desktop application, just like I can for GitHub projects.

Proposed solution

I am proposing that for non-GitHub repositories we add an entry "Show in Browser" that would launch the user's Web browser and navigate to the home page of the project.

image

For a repository cloned with HTTP (which is most of what I use), all we need to do is trim off the .git extension from the primary remote, and send the URL to the browser. The neat thing is that this works for GitHub, GitLab, and even privately hosted GitLab instances.

image

Additional context

I recognize that the primary focus of this application for GitHub projects, but it also works great for GitLab repositories. In my thinking, the more this application is used, (even outside the GitHub ecosystem) the more interest there will be in improving and maintaining it, so it seems like this would be a win-win for everyone.

Thanks in advance for your consideration!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
@steveward @joyfullservice and others