Skip to content

Menu - Repository - Add 'View fork on GitHub' #13533

Open

Description

@MSP-Greg

Describe the feature or problem you’d like to solve

The 'Repository' sub-menu contains a 'View on GitHub' command. If one is working in a fork, this opens the upstream web page. From the upstream web page, it's very inconvenient to get to one's fork. But, from one's fork web page, it's very convenient to get to the upstream web page.

Proposed solution

Add a 'View fork on GitHub' item to the 'Repository' sub-menu. This could be disabled if a fork is not in use.

Please share how this will it benefit Desktop and its users?

Make it easier to use a fork, which is a normal workflow.

Additional context

When working with GitHub repos, I use CLI, the desktop app, and the web UI. Old habits. I do know that features are always being added to desktop, and I and others appreciate that, but the web UI has a lot of content that the desktop may never have.

Activity

  1. steveward commented on Dec 15, 2021

    @steveward
    Contributor

    Thanks for the feedback @MSP-Greg. The View on GitHub action is based on the selected fork behavior in Repository > Repository Settings > Fork Behavior (just wanted to share that this was an option for reference). I'll label this as an enhancement for future consideration of having the specific menu item for forks.

  2. added
    not-planned
    on Jul 8, 2024
  3. RSS1102 commented on Sep 13, 2024

    @RSS1102

    I also want this feature.
    I think this feature is very needed. When I provide pr to others, I need to come to my fork repo and make a pull request.
    But from GitHub desktop, I can only access upstream repo first.😟😟

  4. RSS1102 commented on Sep 13, 2024

    @RSS1102

    Thanks for the feedback @MSP-Greg. The View on GitHub action is based on the selected fork behavior in Repository > Repository Settings > Fork Behavior (just wanted to share that this was an option for reference). I'll label this as an enhancement for future consideration of having the specific menu item for forks.

    Thank you for the solution you provided, which can temporarily solve my problem, but for many forks or I have to reset it after I delete the local repo. This is a very cumbersome and meaningless repetitive operation.😵😵

  5. added
    help wanted
    on Jan 6, 2025
  6. tidy-dev commented on Jan 6, 2025

    @tidy-dev
    Contributor

    @RSS1102 If you want to tackle this, I would propose that:

    1. Change the Repository > View on GitHub to be View Upstream/Fork on GitHub (Only when the repository is a fork, otherwise keep original menu item)
    2. Add an additional menu item of, Repository > View Upstream/Fork on GitHub that is only visible when the repository is a fork.

    The tricky part is that if we have a keyboard shortcut of Cmd/Ctrl + Shift + G that triggers the View on Github menu item action. For the sake of the muscle memory of current users, I wouldn't want to disrupt expected behaviors. Thus, logically that should remain the same and open the upstream if the Fork Behavior is to contribute to upstream and open the fork if it the Fork Behavior is set to be stand alone. In order to accomplish this, you would have to keep the menu item id of the View on GitHub the same and add the "Upstream" or "Fork" word in depending on the fork behavior, similarly the additional menu item would alternate between "View Fork" and "View Upstream" depending on selected Fork Behavior. In other words, "Fork Behavior" is to choose the "primary" action and we are adding a "secondary" action. The labeling of which changes depending on the Fork Behavior and if opening upstream or opening fork is primary.

    In the "No local changes" screen, we have a "View on GitHub" option. Prefer to leave this one alone and if you implement the above menu items as I suggested, it should still keep todays behavior and open upstream vs fork depending on the Fork Behavior settings.

    I hope that all makes sense and you can see why adding this is not super straight forward.

  7. MSP-Greg commented on Jan 7, 2025

    @MSP-Greg
    Author

    If one is working with a fork in GitHub Desktop, from the 'Branch' menu, one can select 'View branch on GitHub', which will open a web page with the fork, not upstream. Doesn't work for a branch that hasn't been pushed to the fork, but that's just a minimal mouse action.

    So, I certainly can live without the feature. Not sure whether to close...

  8. RSS1102 commented on Jan 7, 2025

    @RSS1102

    @tidy-dev Thank you for your suggestion.
    I think view on github doesn't matter which branch it is. We just need to enter its repo, as marked in front of each repo, whether it is a fork or an Upstream branch.

    image

    Perhaps we should add a behavior in File — Options — xxx to decide whether view on github turns on "fork repo"(Here we determine the view on github method, and keep it unchanged by default. If the user does not actively modify it, it will not destroy the expected muscle behavior.).

    only branch — view branch on Github needs to focus on branches (of course there seems to be a problem here, if there is a chance we can talk about it later).

    The main function of view on github is to open my fork project, so that I can better use update branch or discard on commit or pull request....

  9. jackfreem commented on Jan 28, 2026

    @jackfreem
    Contributor

    I'd like to do this; Will post a PR in the next few days.

  10. added a commit that references this issue on Oct 3, 2026
  11. joelng25 commented on Nov 3, 2026

    @joelng25

    Hi @jackfreem, are you still working on this? If not, I'd be happy to pick it up and open a PR adding "View fork on GitHub" / upstream link under the Repository menu.

  12. PtJade-Ceramic commented on Nov 4, 2026

    @PtJade-Ceramic
    Contributor

    Hi @jackfreem, are you still working on this? If not, I'd be happy to pick it up and open a PR adding "View fork on GitHub" / upstream link under the Repository menu.

    I'm sorry to say that he has no activity in this repo since March this year.

    @jechfreem activity timeline on this repo

    Just do it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wantednot-planned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions