github-changes
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -318,3 +318,3 @@ #!/usr/bin/env node | ||
var isMerge = (commit.parents.length > 1); | ||
var isPull = /^Merge pull request #/i.test(commit.commit.message); | ||
var isPull = isMerge && /^Merge pull request #/i.test(commit.commit.message); | ||
// exits | ||
@@ -369,3 +369,3 @@ if ((opts.merges === false) && isMerge) return ''; | ||
var prNumber = commit.commit.message.split('#')[1].split(' ')[0]; | ||
var author = commit.commit.message.split(/\#\d+\sfrom\s/)[1].split('/')[0]; | ||
var author = (commit.commit.message.split(/\#\d+\sfrom\s/)[1]||'').split('/')[0]; | ||
var url = "https://github.com/"+opts.owner+"/"+opts.repository+"/pull/"+prNumber; | ||
@@ -372,0 +372,0 @@ output += "- [#" + prNumber + "](" + url + ") " + message; |
## Change Log | ||
### v0.0.9 (2014/03/01 04:08 +00:00) | ||
### 0.0.10 (2014/03/01 06:01 +00:00) | ||
- [#26](https://github.com/lalitkapoor/github-changes/pull/26) handle missing author in pull requests (@lalitkapoor) | ||
### v0.0.9 (2014/03/01 04:09 +00:00) | ||
- [#22](https://github.com/lalitkapoor/github-changes/pull/22) show commit message if commit body is empty for --use-commit-body (@lalitkapoor) | ||
@@ -5,0 +8,0 @@ - [#23](https://github.com/lalitkapoor/github-changes/pull/23) though tagged correctly commit ordering may vary (@lalitkapoor) |
{ | ||
"name": "github-changes", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "generate changelog for github repos", | ||
@@ -5,0 +5,0 @@ "main": "./bin/index.js", |
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
25629