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

meta: add snapshot builds for pr previews #1525

Merged
merged 2 commits into from
Sep 5, 2019
Merged

Conversation

devsnek
Copy link
Member

@devsnek devsnek commented Apr 30, 2019

this commit adds a warning (stolen from whatpr.org) to "snapshot" builds that exist for non-reference reasons, such as pr previews.

if we add some sort of github action to auto deploy netlify or something on a new pr and then post a comment with the url, this will provide a nice preview. someone with permissions on this repo will have to set that part up.

rendered: https://5ce61b1a493e120007e63323--brave-elion-abb3d4.netlify.com/

scripts/insert_snapshot_warning.js Outdated Show resolved Hide resolved
scripts/insert_snapshot_warning.js Outdated Show resolved Hide resolved
scripts/insert_snapshot_warning.js Outdated Show resolved Hide resolved
scripts/insert_snapshot_warning.js Outdated Show resolved Hide resolved
scripts/insert_snapshot_warning.js Outdated Show resolved Hide resolved
scripts/insert_snapshot_warning.js Outdated Show resolved Hide resolved
scripts/insert_snapshot_warning.js Outdated Show resolved Hide resolved
scripts/insert_snapshot_warning.js Outdated Show resolved Hide resolved
@ljharb ljharb added the meta label Apr 30, 2019
@devsnek devsnek force-pushed the snapshots branch 2 times, most recently from 2e9a867 to 8c016c4 Compare May 23, 2019 04:01
@devsnek
Copy link
Member Author

devsnek commented May 23, 2019

i managed to make this automatically apply the snapshot thing if netlify is building a non-production build. if this was set up for this repo, it believe it would automatically post this link when the pr was created.

preview: https://5ce61b1a493e120007e63323--brave-elion-abb3d4.netlify.com/ vs https://brave-elion-abb3d4.netlify.com/

settings i used:

package.json Outdated Show resolved Hide resolved
scripts/insert_snapshot_warning.js Outdated Show resolved Hide resolved
scripts/netlify.sh Show resolved Hide resolved
scripts/netlify.sh Outdated Show resolved Hide resolved
ljharb pushed a commit to devsnek/ecma262 that referenced this pull request Aug 29, 2019
@ljharb ljharb requested a review from domenic August 29, 2019 17:46
ljharb pushed a commit to devsnek/ecma262 that referenced this pull request Aug 29, 2019
@ljharb
Copy link
Member

ljharb commented Aug 29, 2019

I rebased this and made the requested JSDOM.fromFile changes, and added the contentType option with a charset parameter to avoid garbling the UTF-8 characters.

ljharb pushed a commit to devsnek/ecma262 that referenced this pull request Sep 5, 2019
@ljharb ljharb force-pushed the snapshots branch 2 times, most recently from 13b1ba7 to 85f905a Compare September 5, 2019 05:08
@ljharb ljharb dismissed domenic’s stale review September 5, 2019 05:10

pretty sure changes are addressed; everything's working, so we can clean things up in a followup.

@ljharb ljharb self-assigned this Sep 5, 2019
@ljharb ljharb merged commit 85f905a into tc39:master Sep 5, 2019
@devsnek devsnek deleted the snapshots branch September 5, 2019 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants