fix: allow multiple branches with same channel

This commit is contained in:
Pierre Vanduynslager
2019-11-20 16:17:24 -05:00
parent 20e7a38cdb
commit 63f51ae6dd
6 changed files with 138 additions and 6 deletions
+5
View File
@@ -71,6 +71,10 @@ function makeTag(tagFormat, version, channel) {
return template(tagFormat)({version: `${version}${channel ? `@${channel}` : ''}`});
}
function isSameChannel(channel, otherChannel) {
return channel === otherChannel || (!channel && !otherChannel);
}
module.exports = {
extractErrors,
hideSensitiveValues,
@@ -86,4 +90,5 @@ module.exports = {
getFirstVersion,
getRange,
makeTag,
isSameChannel,
};