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

auto-release-cli

Package Overview
Dependencies
Maintainers
2
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-release-cli - npm Package Compare versions

Comparing version

to
0.30.0

10

CHANGELOG.md

@@ -0,1 +1,11 @@

# 0.30.0 (Sun Dec 16 2018)
#### 🚀 Enhancement
- Init prompt for changelog labels [#71](https://github.com/intuit/auto-release/pull/71) ([@hipstersmoothie](https://github.com/hipstersmoothie))
#### Authors: 1
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
---
# 0.29.0 (Sun Dec 16 2018)

@@ -2,0 +12,0 @@

49

dist/init.js

@@ -170,5 +170,5 @@ "use strict";

return __awaiter(this, void 0, void 0, function () {
var useCustomChangelogTitles, changelogTitles, response, titles_1;
return __generator(this, function (_a) {
switch (_a.label) {
var _a, useCustomChangelogTitles, changelogTitles, response, titles_1, getAnotherTitle, response, _b, githubLabel, changelogTitle;
return __generator(this, function (_c) {
switch (_c.label) {
case 0: return [4 /*yield*/, enquirer_1.prompt({

@@ -181,3 +181,3 @@ type: 'confirm',

case 1:
useCustomChangelogTitles = _a.sent();
useCustomChangelogTitles = _c.sent();
changelogTitles = {};

@@ -194,3 +194,3 @@ if (!useCustomChangelogTitles.value) return [3 /*break*/, 3];

case 2:
response = _a.sent();
response = _c.sent();
titles_1 = Object.values(github_release_1.defaultChangelogTitles);

@@ -205,4 +205,39 @@ changelogTitles = Object.entries(response.value.values).reduce(function (all, _a) {

}, {});
_a.label = 3;
case 3: return [2 /*return*/, changelogTitles];
_c.label = 3;
case 3: return [4 /*yield*/, enquirer_1.prompt({
type: 'confirm',
name: 'value',
message: 'Would you like to add additional changelog titles?',
initial: 'no'
})];
case 4:
getAnotherTitle = _c.sent();
_c.label = 5;
case 5:
if (!getAnotherTitle.value) return [3 /*break*/, 8];
return [4 /*yield*/, enquirer_1.prompt({
type: 'snippet',
name: 'value',
message: 'Add another changelog title:',
initial: github_release_1.defaultChangelogTitles,
// @ts-ignore
template: "\n#{githubLabel}: #{changelogTitle}\n "
})];
case 6:
response = _c.sent();
_b = response.value.values, githubLabel = _b.githubLabel, changelogTitle = _b.changelogTitle;
if (githubLabel === undefined || changelogTitle === undefined) {
return [3 /*break*/, 8];
}
changelogTitles = __assign({}, changelogTitles, (_a = {}, _a[githubLabel] = changelogTitle, _a));
return [4 /*yield*/, enquirer_1.prompt({
type: 'confirm',
name: 'value',
message: 'Would you like to add another?',
initial: 'no'
})];
case 7:
getAnotherTitle = _c.sent();
return [3 /*break*/, 5];
case 8: return [2 /*return*/, changelogTitles];
}

@@ -209,0 +244,0 @@ });

2

package.json
{
"name": "auto-release-cli",
"description": "CLI tools to help facilitate semantic versioning based on Github PR labels.",
"version": "0.29.0",
"version": "0.30.0",
"author": {

@@ -6,0 +6,0 @@ "name": "Andrew Lisowski",

Sorry, the diff of this file is not supported yet