Socket
Socket
Sign inDemoInstall

changelog.md

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

changelog.md - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

8

CHANGELOG.md

@@ -0,1 +1,9 @@

## [Version 0.1.1](https://github.com/egoist/changelog.md/releases/tag/v0.1.1) (2017-1-3)
### Patches
- only handle github squashed commits: [`e11fa02`](https://github.com/egoist/changelog.md/commit/e11fa02)
[...full changes](https://github.com/egoist/changelog.md/compare/v0.1.0...v0.1.1)
## [Version 0.1.0](https://github.com/egoist/changelog.md/releases/tag/v0.1.0) (2017-1-3)

@@ -2,0 +10,0 @@

10

lib/index.js

@@ -52,6 +52,6 @@ 'use strict'

if (
/^\[skip\]/.test(commit.subject) ||
/^\[ignore\]/.test(commit.subject) ||
/^\[skip\s[^\]]*\]/.test(commit.subject) ||
/^\[ignore\s[^\]]*\]/.test(commit.subject)
/^\[skip]/.test(commit.subject) ||
/^\[ignore]/.test(commit.subject) ||
/^\[skip\s[^\]]*]/.test(commit.subject) ||
/^\[ignore\s[^\]]*]/.test(commit.subject)
) {

@@ -63,3 +63,3 @@ return false

let answers = yield inquirer.prompt(commits.map(commit => ({
const answers = yield inquirer.prompt(commits.map(commit => ({
name: commit.commit.short,

@@ -66,0 +66,0 @@ message: `Pick a type for commit: \`${commit.subject}\``,

@@ -40,7 +40,13 @@ 'use strict'

// reference Issue and PR
const match = /\s#([0-9]+)/.exec(commit.subject)
const id = match && match[1]
let title = commit.subject
let id
const re = /\s\(#([0-9]+)\)/
const matchGitHubSquashed = re.exec(commit.subject)
if (matchGitHubSquashed) {
title = title.replace(re, '')
id = matchGitHubSquashed[1]
}
const ref = id ? ` ([#${id}](${url}issues/${id}))` : ''
return `- ${commit.subject}: [\`${commit.commit.short}\`](${url}commit/${commit.commit.short})${ref}`
return `- ${title}: [\`${commit.commit.short}\`](${url}commit/${commit.commit.short})${ref}`
}).join('\n')}

@@ -47,0 +53,0 @@ `

{
"name": "changelog.md",
"version": "0.1.0",
"version": "0.1.1",
"description": "Manage CHANGELOG.md so easy it hurts.",

@@ -5,0 +5,0 @@ "repository": {

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