We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3a6e0f commit a4c6641Copy full SHA for a4c6641
bin/release_tag.ts
@@ -82,7 +82,9 @@ if (commitId) {
82
// If we're releasing to production, we need to ensure the commitId is part of the master branch.
83
const commitBranch = exec(`git branch --contains ${commitId}`)
84
.split('\n')
85
- .map(branch => branch.trim());
+ // the branch name will have a star in front if it's the current branch
86
+ .map(branch => branch.replace('* ', '').trim());
87
+ logger.info(`Commit ID "${commitId}" is part of branches: ${commitBranch}`);
88
if (!commitBranch.includes(branch)) {
89
logger.error(`Commit ID "${commitId}" is not part of the ${branch} branch. Aborting.`);
90
process.exit(1);
0 commit comments