Skip to content

[Fork] Open PR from fork in browser - #8929

Merged
outofambit merged 3 commits into
developmentfrom
bugfix/open-fork-pr
Jan 21, 2020
Merged

outofambit merged 3 commits into
developmentfrom
bugfix/open-fork-pr

Conversation

@outofambit

@outofambit outofambit commented Jan 15, 2020 •

Copy link
Copy Markdown
Contributor

Closes #8928
(pulled out of #8652)

Description

  • Always use the pull request's base repo url to find the pull request online

Release notes

Notes: [Fixed] Open fork pull requests in browser

@outofambit
outofambit requested a review from niik January 15, 2020 22:51
@tierninho
tierninho self-requested a review January 16, 2020 00:01

@tierninho tierninho left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

I did wanted to surface two things, but I believe it is ok to leave them as-is:

  • The http.ts:148 GET https://api.github.com/repos/tierninho/TestWebAppProject/commits/refs/pull/67/head/status 404 (Not Found) error is still shown in the console logs.
  • The #67 badge is shown in the nav header but not in the PR tab. Makes sense once you realize it is on the upstream repo.

Screen Shot 2020-01-15 at 2 03 53 PM

@outofambit

Copy link
Copy Markdown
Contributor Author

LGTM!

I did wanted to surface two things, but I believe it is ok to leave them as-is:

* The `http.ts:148 GET https://api.github.com/repos/tierninho/TestWebAppProject/commits/refs/pull/67/head/status 404 (Not Found)` error is still shown in the console logs.

* The `#67` badge is shown in the nav header but not in the PR tab. Makes sense once you realize it is on the upstream repo.

@tierninho thanks! yeah the first issue is a pre-existing error that i haven't been able to connect with any user-facing problems (yet). the second issue i've seen as well and i think its worth us considering if we want to hide that badge. (this would be in a separate PR) @ampinsk any thoughts?

@ampinsk

ampinsk commented Jan 16, 2020

Copy link
Copy Markdown
Contributor

the second issue i've seen as well and i think its worth us considering if we want to hide that badge. (this would be in a separate PR) @ampinsk any thoughts?

@outofambit and I chatted through this in Slack and we think we should hide these upstream PR badges until we eventually start displaying upstream PRs in the PRs list. I'll open an issue!

@outofambit
outofambit merged commit 41be179 into development Jan 21, 2020
@outofambit
outofambit deleted the bugfix/open-fork-pr branch January 21, 2020 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Direct user to correct URL if PR lives on the upstream repo

4 participants