commit-stream
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -34,3 +34,3 @@ const through2 = require('through2') | ||
commit.reviewers.push({ name: m[1], email: m[2] }) | ||
} else if (m = line.match(/^\s+PR(?:[- ]?URL)?:?\s*(.+)\s*$/i)) { | ||
} else if (m = line.match(/^\s+PR(?:[- ]?URL)?:?\s*(.+)\s*$/)) { | ||
commit.prUrl = m[1] | ||
@@ -37,0 +37,0 @@ if (ghUser && ghProject && (m = commit.prUrl.match(/^\s*#?(\d+)\s*$/))) { |
{ | ||
"name": "commit-stream", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Turn a `git log` into a stream of commit objects", | ||
@@ -5,0 +5,0 @@ "main": "commit-stream.js", |
14
test.js
@@ -21,2 +21,16 @@ const through2 = require('through2') | ||
t.deepEqual(list[list.length - 9], { | ||
author : { email: 'ralphtheninja@riseup.net', name: 'Lars-Magnus Skog' } | ||
, description : [ | ||
'Fixes: https://github.com/rvagg/changelog-maker/issues/35' | ||
] | ||
, ghIssue : 1 | ||
, ghProject : 'commit-stream' | ||
, ghUser : 'rvagg' | ||
, prUrl : 'https://github.com/rvagg/commit-stream/pull/1' | ||
, sha : '1bcfd072fd74399808fbcd5cf31ce5342dd6d70c' | ||
, summary : 'process: this should not match PR-URL' | ||
, reviewers : [ { email: 'rod@vagg.org', name: 'Rod Vagg' } ] | ||
}, 'got correct ninth commit') | ||
t.deepEqual(list[list.length - 4], { | ||
@@ -23,0 +37,0 @@ author: { email: 'rod@vagg.org', name: 'Rod Vagg' } |
10327
153