-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from nodejs/co-authored-by
add support for co-authored-by
- Loading branch information
Showing
3 changed files
with
28 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ test('current plain commit log', function (t) { | |
|
||
t.deepEqual(list[list.length - 9], { | ||
author : { email: '[email protected]', name: 'Lars-Magnus Skog' } | ||
, authors : [ { email: '[email protected]', name: 'Lars-Magnus Skog' } ] | ||
, authorDate : 'Tue Feb 9 15:46:46 2016 +0100' | ||
, description : [ | ||
'Fixes: https://github.com/rvagg/changelog-maker/issues/35' | ||
|
@@ -35,13 +36,15 @@ test('current plain commit log', function (t) { | |
|
||
t.deepEqual(list[list.length - 4], { | ||
author: { email: '[email protected]', name: 'Rod Vagg' } | ||
, authors: [ { email: '[email protected]', name: 'Rod Vagg' } ] | ||
, authorDate: 'Fri Apr 17 11:16:51 2015 +1000' | ||
, sha: 'f92b93c3c7175b07f847dd45058b121cea6b3a20' | ||
, summary: 'deleted package.json line' | ||
}, 'got correct fourth commit') | ||
|
||
t.deepEqual(list[list.length - 3], { | ||
author: { email: '[email protected]', name: 'Rod Vagg' } | ||
, authors: [ { email: '[email protected]', name: 'Rod Vagg' } ] | ||
, authorDate: 'Fri Apr 17 11:13:06 2015 +1000' | ||
, description: [ 'comment', 'Reviewed-By: Nobody' ] | ||
, sha: 'db34ce2af09a6a9fb70241d43965a2bc48b90b4c' | ||
|
@@ -50,6 +53,7 @@ test('current plain commit log', function (t) { | |
|
||
t.deepEqual(list[list.length - 2], { | ||
author : { email: '[email protected]', name: 'Rod Vagg' } | ||
, authors : [ { email: '[email protected]', name: 'Rod Vagg' } ] | ||
, authorDate: 'Fri Apr 17 10:52:16 2015 +1000' | ||
, description : [ | ||
'Some extra summary information here' | ||
|
@@ -69,9 +73,21 @@ test('current plain commit log', function (t) { | |
sha : 'd94841274e2979e7758413a0f48fa37560d0dde6' | ||
, authorDate: 'Thu Apr 16 20:49:21 2015 +1000' | ||
, author : { name: 'Rod Vagg', email: '[email protected]' } | ||
, authors: [ { email: '[email protected]', name: 'Rod Vagg' } ] | ||
, summary: 'make it so' | ||
}, 'got correct first commit') | ||
|
||
t.deepEqual(list[list.length - 16], { | ||
sha : list[list.length - 16].sha // unknown at time of writing :) | ||
, authorDate: 'Tue Jun 12 23:41:35 2018 +0200' | ||
, author : { name: 'Anna Henningsen', email: '[email protected]' } | ||
, authors: [ | ||
{ name: 'Anna Henningsen', email: '[email protected]' } | ||
, { name: 'nobody', email: 'nobody@nowhere' } | ||
] | ||
, summary: 'add support for co-authored-by' | ||
}, 'got correct co-authored-by commit') | ||
|
||
t.end() | ||
}) | ||
}) | ||
|