-
Notifications
You must be signed in to change notification settings - Fork 30
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
Suggestion: PR Preview Github Action Workflows #30
Comments
PR diffs shouldn't be difficult to read currently, since the html file is marked as autogenerated per https://github.com/tc39/template-for-proposals/blob/main/.gitattributes#L1, so any diff is collapsed. That said, I do like the deploy approach! For PRs, I'm not sure about auto-deploying PRs to proposal repos, since proposal authors might not always be vigilant about keeping spam or inappropriate content out of them, and since closing a PR wouldn't automatically prune it. However, it seems like it'd be possible to add a Either way, let's start with just the build.yml change for now, and we can iterate from there? |
You have to manually approve jobs from first-time contributors, I think, which should basically eliminate that problem, right? |
Maybe we could use https://pkg.pr.new instead of pushing commits to git? If so, I'd take a PR :-) |
https://pkg.pr.new/ appears to be for npm packages, not webpages, from what I can tell? Which is neat but does not fulfill the same function. |
ah, you're right :-/ |
I don't think there's much harm in pushing to |
I noticed the proposal template repo has a
build.yml
github action. I recently wrote something similar for https://github.com/tc39/proposal-class-static-block that might be a useful improvement:JamesIves/[email protected]
to deploy output to thegh-pages
branchpr/
folder from clean deploymentJamesIves/[email protected]
to deploy output to thegh-pages
branch underpr/<number>
https://tc39.es/<repository>/pr/<number>
phulsechinmay/[email protected]
to post a comment to the PR with a link to the generated preview:By publishing to
gh-pages
you don't need to check in thedocs
folder (which can be safely added to.gitignore
), which makes PR diffs easier to read.NOTE: This does not currently do any kind of automatic pruning generated PR outputs, so that the links in a PR remain working. Pruning stale PR renders is a manual process that can be done by deleting PR-specific subfolders under the
pr
folder in thegh-pages
branch using the GitHub UI.The text was updated successfully, but these errors were encountered: