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

GitHub Export: Use target repo and branch in preview links. #859

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

adamziel
Copy link
Collaborator

This fixes a bug where the preview links would always point to the upstream repo, even if the changes were pushed to the fork. It also fixes a bug where the preview links would sometimes point to a branch with a different name than the one the changes were pushed to.

Testing instructions

  1. Open Playground, make some changes
  2. Click "Export to GitHub" and complete the flow with a repo you have no write access to. Keep this tab open.
  3. Click "Preview" in the PR description and verify that it loads Playground with your changes. Then close that tab.
  4. In the original Playground tab, make some more changes, click Export to GitHub, select "Update PR", put in the number, then select "Create PR".
  5. Complete the flow
  6. Click "Preview" in the PR description and verify that it loads Playground

cc @dmsnell

This fixes a bug where the preview links would always point to the
upstream repo, even if the changes were pushed to the fork. It also
fixes a bug where the preview links would sometimes point to a branch
with a different name than the one the changes were pushed to.

 ## Testing instructions

1. Open Playground, make some changes
2. Click "Export to GitHub" and complete the flow with a repo you have no
   write access to. Keep this tab open.
3. Click "Preview" in the PR description and verify that it loads Playground
   with your changes. Then close that tab.
3. In the original Playground tab, make some more changes, click Export to GitHub,
   select "Update PR", put in the number, then select "Create PR".
4. Complete the flow
5. Click "Preview" in the PR description and verify that it loads Playground
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Aspect] Browser [Focus] Developer Tools [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant