changelog.md
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -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 @@ |
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12967
270