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

Release script auto-determine the latest Canary build if none specified #14339

Merged
merged 2 commits into from
Nov 28, 2018

Conversation

bvaughn
Copy link
Contributor

@bvaughn bvaughn commented Nov 27, 2018

Seems like this would be useful if we want to integrate with the FB sync script. Also it's just convenient.

Now you can prepare a specified build:

./scripts/release/prepare-canary.js --build=12774

Or just prepare the most recent one from master:

./scripts/release/prepare-canary.js

Demo

kapture 2018-11-27 at 15 07 40

// https://circleci.com/docs/api/#recent-builds-for-a-project-branch
const metadataURL = `https://circleci.com/api/v1.1/project/github/facebook/react/tree/master`;
const metadata = await http.get(metadataURL, true);
const build = metadata.find(entry => entry.branch === 'master').build_num;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want the latest completed+successful build instead of just the latest? Failed and incomplete both seem subpar.

Copy link
Contributor Author

@bvaughn bvaughn Nov 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 Good point. (done)

@bvaughn
Copy link
Contributor Author

bvaughn commented Nov 28, 2018

🕺 If anyone disagrees with this change I'll revert it.

@bvaughn bvaughn merged commit 88ada98 into facebook:master Nov 28, 2018
@bvaughn bvaughn deleted the get-latest-canary-build branch November 28, 2018 21:56
jetoneza pushed a commit to jetoneza/react that referenced this pull request Jan 23, 2019
…ed (facebook#14339)

* Release script auto-determine the latest Canary build if none specified
n8schloss pushed a commit to n8schloss/react that referenced this pull request Jan 31, 2019
…ed (facebook#14339)

* Release script auto-determine the latest Canary build if none specified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants