Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

autorelease-gitlab

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autorelease-gitlab - npm Package Compare versions

Comparing version
2.0.1
to
2.0.2
+2
-2
create-tag.js

@@ -102,4 +102,4 @@ 'use strict';

var _ref2 = yield request({
url: `/projects/${ encodeURIComponent(repo) }/repository/tags`,
baseUrl: gitlabUrl || "https://gitlab.com/api/v3",
url: `/api/v3/projects/${ encodeURIComponent(repo) }/repository/tags`,
baseUrl: gitlabUrl || "https://gitlab.com",
method: "POST",

@@ -106,0 +106,0 @@ headers: {

@@ -36,3 +36,3 @@ {

},
"version": "2.0.1"
"version": "2.0.2"
}

@@ -22,15 +22,17 @@ 'use strict';

let current = process.env.CI_BUILD_REF_NAME;
let pass = [].concat(branch).some(b => {
if (lodash.isRegExp(b)) {
return b.test(current);
} else if (typeof b === "string") {
return current === b;
} else if (typeof b === "function") {
return b(current);
if (branch) {
let current = process.env.CI_BUILD_REF_NAME;
let pass = [].concat(branch).some(b => {
if (lodash.isRegExp(b)) {
return b.test(current);
} else if (typeof b === "string") {
return current === b;
} else if (typeof b === "function") {
return b(current);
}
});
if (!pass) {
throw new Error(`This autorelease was triggered on branch ${ current }, which is not a branch autorelease is configured to publish from.`);
}
});
if (!pass) {
throw new Error(`This autorelease was triggered on branch ${ current }, which is not a branch autorelease is configured to publish from.`);
}

@@ -37,0 +39,0 @@ }