Skip to content

Show the upstream repository on github when clicking on "view on github" #9312

Closed

Description

@rafeca

Describe the feature or problem you’d like to solve

We're currently redirecting users to the forked repository when clicking on "View on GitHub", but based on #9170 I think we want to default to the parent repository instead.

Proposed solution

When a user clicks view on GitHub while they’re on a fork, we eant to redirect them to the upstream repository on GitHub, not the fork.

Additional context

In a similar fashion than #9232, this may not be what everyone wants, but based on #9170 it'll cover the vast majority of use cases, where the fork exists in order to allow someone to contribute to the upstream repository.

Activity

  1. tierninho commented on Mar 18, 2020

    @tierninho
    Contributor

    Thanks for the issue! @rafeca

    We happen to use an identical "View on GitHub" label for viewing single commits on GitHub.com.

    Screen Shot 2020-03-18 at 7 46 44 AM

    Although you are referencing repo-level buttons, the identical wording here may cause some confusion. Just wanted to point it out in case we want to rephrase it. I have no option.

  2. rafeca commented on Mar 18, 2020

    @rafeca
    ContributorAuthor

    Oh thanks for pointing this out @tierninho ! I just talked about this earlier today with @outofambit !

    I think that ideally that menu item should also redirect to the upstream repository in normal conditions, but there's something tricky here: we would need to check if the commit is only pushed to the fork and redirect to the fork in that case.

  3. self-assigned this
    on Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions