From dbd4d2cade2cdaddcc1f501bb9f5ae774b63dd32 Mon Sep 17 00:00:00 2001 From: Mark Roghelia Date: Wed, 29 Apr 2020 13:22:51 -0400 Subject: [PATCH] branch in createReleaseBranch.js was undefined (#2949) The branch option was dropped in the migration from the previous version of the script and the undefined opt.options.branch resulted in no PRs being found in the call to the GitHub API. --- release/createReleaseBranch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/release/createReleaseBranch.js b/release/createReleaseBranch.js index 08f6682dc4..76b34fdbe7 100644 --- a/release/createReleaseBranch.js +++ b/release/createReleaseBranch.js @@ -17,6 +17,7 @@ process.env.EDITOR = process.env.EDITOR === undefined ? 'code --wait' : process. var opt = require('node-getopt').create([ ['', 'dryrun', 'Dry run only, do not actually commit new release'], ['', 'derivedFrom=version', 'Used to get PRs merged since this release was created', 'latest'], + ['', 'branch=branch', 'Branch to select PRs merged into', 'master'], ['h', 'help', 'Display this help'], ]) .setHelp(