Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove push/pr automation
  • Loading branch information
codebytere committed Mar 19, 2020
commit 079b860e5ddf37cca1e2fba351becce3f38dc418
38 changes: 3 additions & 35 deletions lib/prepare_release.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,28 +149,12 @@ class ReleasePreparation {
{ defaultAnswer: false });
}

// Push branch to upstream.
const shouldPushBranch = await cli.prompt(
'Push branch to upstream?');
if (!shouldPushBranch) {
cli.warn(`Aborting \`git node release\` for version ${newVersion}`,
{ defaultAnswer: false });
return;
}
this.pushBranch();

// Open pull request against the release branch.
const shouldOpenPR = await cli.prompt(
`Open pull request against ${versionComponents.major}.x?`,
{ defaultAnswer: false });
if (shouldOpenPR) {
this.openPullRequest();
}

cli.separator();
cli.ok(`Release preparation for ${newVersion} complete.\n`);
cli.info(
'Please proceed to Jenkins and begin the following CI jobs:\n' +
'To finish the release proposal, run: \n' +
` $ git push ${`v${semver.major(newVersion)}.x-staging`}\n` +
'Finally, proceed to Jenkins and begin the following CI jobs:\n' +
' * https://ci.nodejs.org/job/node-test-pull-request/\n' +
' * https://ci.nodejs.org/job/citgm-smoker/');
cli.info(
Expand Down Expand Up @@ -240,22 +224,6 @@ class ReleasePreparation {
]).trim();
}

pushBranch() {
const { newVersion, upstream } = this;
const proposalBranch = `v${newVersion}-proposal`;

runSync('git', ['push', upstream, proposalBranch]).trim();
}

openPullRequest() {
const { newVersion, versionComponents } = this;
const proposalBranch = `v${newVersion}-proposal`;
const releaseBranch = `v${versionComponents.major}.x`;

runSync('open',
[`https://github.com/nodejs/node/compare/${releaseBranch}...${proposalBranch}?expand=1`]);
}

async updateREPLACEMEs() {
const { newVersion } = this;

Expand Down