Skip to content

Commit

Permalink
vx: add branchAllowsRelease constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Jan 12, 2022
1 parent b9369da commit 7c7c9a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vx/util/taggedBranch.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ const isReleaseBranch = CURRENT_BRANCH.startsWith(RELEASE_BRANCH);
const [, targetPackage = undefined] =
isIntegrationBranch || isNextBranch ? CURRENT_BRANCH.split('-') : [];

const branchAllowsRelease =
isReleaseBranch || isNextBranch || isIntegrationBranch;

module.exports = {
CURRENT_BRANCH,
branchAllowsRelease,
isIntegrationBranch,
isLatestBranch,
isNextBranch,
Expand Down

0 comments on commit 7c7c9a0

Please sign in to comment.