-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
Get previews for PRs from forks #330
Comments
This is how Cloudflare CI Pages works. Preview only works with deployments from branchs: https://developers.cloudflare.com/pages/configuration/preview-deployments/ |
Maybe |
Hey @benjagm working on it |
Thanks for your interest and proactivity. Please wait until @gregsdennis have time to reply and share more thoughts and we put the issue in status available. |
It is possible but requires additional setup. We would need to make a CI script which would...
There's a guide here: https://developers.cloudflare.com/pages/how-to/use-direct-upload-with-continuous-integration/ If we agree it's worth doing, I'm happy to at least start off that work. |
Please have a look at #297 |
What is the relationship of that issue with this one @Min2who ? |
I think having the previews for PRs from forks will be great. |
@Min2who I think that's only tangentially related. This issue is for having the CI generate preview sites for PRs from forks like it does for PRs from this repo. While that PR would benefit from resolving this issue, I don't think it addresses this issue at all. |
Hii Folks I was looking at https://github.com/json-schema-org/website/tree/main/.github/workflows but I don't see the workflow for creating previews for PRs when they are created through a branch, how do we achieve that?? |
Hi everyone! Cloudflare does not provide preview for PRs opened from forks, only from branches of the same org so we'll need to do some work in cloudflare for this. @Relequestual and I are working on this. |
Hey @benjagm have you and @Relequestual have given thought of deploying it to |
I think it is ok what we have now. We just need some time to do this setup in cloudflare. |
Please assign this issue to me as I am currently working on it. |
Thanks Alok! All yours. |
Please be aware that this will likely require tasks in Cloudflare, which will require someone with access. |
Hey !!
I reached out to the maintainer of this GitHub action about security concerns, and he confirmed that it's safe to use. While testing this in my organization's dummy repository, I encountered a major bug. I notified the maintainer through Discord, and he have fixed this now. Here's a preview of my PR: PR URL: AuroraBenzyl/Testing-Cloudflare-Pages#22 Preview URL: https://761499e4.testing-cloudflare-pages-7wt.pages.dev/ Production URL: https://testing-cloudflare-pages-7wt.pages.dev/ Workflow : https://github.com/AuroraBenzyl/Testing-Cloudflare-Pages/blob/master/.github/workflows/preview.yaml Also, this is a known issue to Cloudflare they might fix this in future: Looking for your thought on this!!! Thank you : ) |
What do you think @Relequestual ? This ok for me. |
Hello! 👋 This issue has been automatically marked as stale due to inactivity 😴 It will be closed in 180 days if no further activity occurs. To keep it active, please add a comment with more details. There can be many reasons why a specific issue has no activity. The most probable cause is a lack of time, not a lack of interest. Let us figure out together how to push this issue forward. Connect with us through our slack channel : https://json-schema.org/slack Thank you for your patience ❤️ |
Describe the bug
Currently, it seems that preview sites are not generated for PRs from forks. This is annoying.
How to Reproduce
Example: #314
Expected behavior
It should generate a preview site, like this.
The text was updated successfully, but these errors were encountered: