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

Try: Fix preview link in PRs from forks #43

Merged
merged 5 commits into from
Nov 4, 2024

Conversation

juanfra
Copy link
Member

@juanfra juanfra commented Oct 31, 2024

Description

Fixes #41

I'm updating the repo name depending on whether it's a fork or not so that the proxy can download the correct theme folder and the preview link works for PRs coming from forks.

Screen.Recording.2024-10-31.at.12.55.17.mov

You can see the changes in action in the following PR.


Bonus: Updated the inclusion of preferred versions only if there is a value.

@bgrgicak bgrgicak added the bug Something isn't working label Nov 4, 2024
@juanfra juanfra requested a review from bgrgicak November 4, 2024 09:49
@bgrgicak
Copy link
Contributor

bgrgicak commented Nov 4, 2024

Thank you for fixing fork previews @juanfra!

@bgrgicak bgrgicak merged commit 7b67470 into WordPress:trunk Nov 4, 2024
@juanfra juanfra deleted the fix/preview-link-forks branch November 4, 2024 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Preview not working on forks
3 participants