🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

git-cactus

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-cactus - npm Package Compare versions

Comparing version

to
1.4.2

2

package.json
{
"name": "git-cactus",
"version": "1.4.1",
"version": "1.4.2",
"description": "A opinionated tool for cutting releases",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -32,4 +32,4 @@ const tmp = require('tmp');

async function approveDiff(repo, currentVersion) {
const range = `v${currentVersion}..master`;
async function approveDiff(repo, currentVersion, endRange = 'master') {
const range = `v${currentVersion}..${endRange}`;
const commits = await repo.log([range]);

@@ -107,6 +107,6 @@

logger.info('Tagging version', versionInfo.version);
const approval = await approveDiff(repo, currentVersion);
const approval = await approveDiff(repo, currentVersion, 'HEAD');
if (!approval.lgtm) {
return 'Aborted push! Local changes not reverted, you must now do surgery!';
return 'Aborted push! Local changes reverted, you must now do surgery!';
}

@@ -113,0 +113,0 @@