Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.31.0 to 0.32.0

10

CHANGELOG.md

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

# 0.32.0 (Sun Dec 16 2018)
#### 🚀 Enhancement
- Configure changelog labels with create-labels [#76](https://github.com/intuit/auto-release/pull/76) ([@hipstersmoothie](https://github.com/hipstersmoothie))
#### Authors: 1
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie))
---
# 0.31.0 (Sun Dec 16 2018)

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

39

dist/cli/args.js

@@ -348,2 +348,10 @@ "use strict";

];
function filterCommands(allCommands, include) {
return allCommands
.filter(function (command) { return include.includes(command.name); })
.map(function (command) { return ({
name: command.name,
summary: command.summary
}); });
}
function printRootHelp() {

@@ -366,30 +374,16 @@ var options = __spread(mainDefinitions, defaultOptions);

header: 'Setup Commands',
content: commands
.filter(function (command) { return ['init', 'create-labels'].includes(command.name); })
.map(function (command) { return ({
name: command.name,
summary: command.summary
}); })
content: filterCommands(commands, ['init', 'create-labels'])
},
{
header: 'Release Commands',
content: commands
.filter(function (command) {
return ['release', 'version', 'changelog', 'shipit'].includes(command.name);
})
.map(function (command) { return ({
name: command.name,
summary: command.summary
}); })
content: filterCommands(commands, [
'release',
'version',
'changelog',
'shipit'
])
},
{
header: 'Pull Request Interaction Commands',
content: commands
.filter(function (command) {
return ['label', 'pr-check', 'pr', 'comment'].includes(command.name);
})
.map(function (command) { return ({
name: command.name,
summary: command.summary
}); })
content: filterCommands(commands, ['label', 'pr-check', 'pr', 'comment'])
},

@@ -481,3 +475,2 @@ {

}
console.log(autoOptions);
return autoOptions;

@@ -484,0 +477,0 @@ }

import GHub from '@octokit/rest';
import { ICommit } from 'parse-git';
import { ILogger, VersionLabel } from './github-release';
import { ILogger } from './github-release';
export interface IGithubOptions {

@@ -36,3 +36,3 @@ owner: string;

createStatus(prInfo: IPRInfo): Promise<GHub.Response<GHub.ReposCreateStatusResponse>>;
createLabel(label: VersionLabel, name: string): Promise<GHub.Response<GHub.IssuesCreateLabelResponse>>;
createLabel(label: string, name: string): Promise<GHub.Response<GHub.IssuesCreateLabelResponse>>;
getProject(): Promise<GHub.Response<GHub.ReposGetResponse>>;

@@ -39,0 +39,0 @@ getCommitsForPR(pr: number): Promise<GHub.PullsListCommitsResponseItem[]>;

@@ -14,3 +14,3 @@ import signale from 'signale';

};
export declare const defaultLabelsDescriptions: Map<VersionLabel, string>;
export declare const defaultLabelsDescriptions: Map<string, string>;
export interface ILogger {

@@ -57,3 +57,3 @@ log: signale.Signale<signale.DefaultMethods>;

createComment(message: string, pr: number, context?: string): Promise<import("@octokit/rest").Response<import("@octokit/rest").IssuesCreateCommentResponse>>;
addLabelsToProject(labels: Map<VersionLabel, string>, onlyPublishWithReleaseLabel?: boolean): Promise<void>;
addLabelsToProject(labels: Map<string, string>, onlyPublishWithReleaseLabel?: boolean): Promise<void>;
getSemverBump(from: string, to?: string, onlyPublishWithReleaseLabel?: boolean, noReleaseLabels?: string[]): Promise<SEMVER>;

@@ -60,0 +60,0 @@ postToSlack(releaseNotes: string, tag: string): Promise<void>;

@@ -111,2 +111,4 @@ "use strict";

exports.defaultLabelsDescriptions.set('prerelease', 'create pre release');
exports.defaultLabelsDescriptions.set('internal', 'changes are internal to the project');
exports.defaultLabelsDescriptions.set('documentation', 'changes only effect documentation');
var readFile = util_1.promisify(fs.readFile);

@@ -113,0 +115,0 @@ var writeFile = util_1.promisify(fs.writeFile);

@@ -65,2 +65,6 @@ #!/usr/bin/env node

};
var __spread = (this && this.__spread) || function () {
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
return ar;
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -329,3 +333,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

return [3 /*break*/, 45];
case 5: return [4 /*yield*/, githubRelease.addLabelsToProject(semVerLabels, args.onlyPublishWithReleaseLabel)];
case 5: return [4 /*yield*/, githubRelease.addLabelsToProject(new Map(__spread(semVerLabels, new Map(__spread(Object.keys(github_release_1.defaultChangelogTitles), Object.keys(config.changelogTitles || {})).map(function (label) { return [label, label]; })))), args.onlyPublishWithReleaseLabel)];
case 6:

@@ -332,0 +336,0 @@ _c.sent();

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc