Skip to content

Commit 4462118

Browse files
committed
Add merge commit to test data
1 parent 3323916 commit 4462118

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

test/commits.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ describe('parseCommits', () => {
4040
it('supports startingCommit option', async () => {
4141
const gitLog = await readFile(join(__dirname, 'data', 'git-log.txt'), 'utf-8')
4242
const options = { startingCommit: '17fbef87e82889f01d8257900f7edc55b05918a2' }
43-
expect(parseCommits(gitLog, origins.github, options)).to.have.length(9)
43+
expect(parseCommits(gitLog, origins.github, options)).to.have.length(10)
4444
})
4545

4646
it('invalid startingCommit throws an error', done => {

test/data/commits.js

+16
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,22 @@ export default [
133133
},
134134
"href": "https://github.com/user/repo/commit/0e24bf427a51eac52133cc731b4b5d74a7e04672"
135135
},
136+
{
137+
"hash": "92839699a6aaea148dcd72ea897321e66cae0c18",
138+
"shorthash": "9283969",
139+
"author": "Pete Cook",
140+
"email": "email@example.com",
141+
"date": "2015-12-29T11:35:54+00:00",
142+
"tag": null,
143+
"subject": "Merge remote-tracking branch 'random-branch' into master",
144+
"message": "Merge remote-tracking branch 'random-branch' into master",
145+
"fixes": null,
146+
"merge": null,
147+
"href": "https://github.com/user/repo/commit/92839699a6aaea148dcd72ea897321e66cae0c18",
148+
"files": 1,
149+
"insertions": 1,
150+
"deletions": 0
151+
},
136152
{
137153
"hash": "17fbef87e82889f01d8257900f7edc55b05918a2",
138154
"shorthash": "17fbef8",

test/data/git-log.txt

+9
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ Merge pull request #5 from repo/branch
7272

7373
Should not parse #4 in PR title
7474
__AUTO_CHANGELOG_MESSAGE_SEPARATOR__
75+
__AUTO_CHANGELOG_COMMIT_SEPARATOR__92839699a6aaea148dcd72ea897321e66cae0c18
76+
77+
2015-12-29T11:35:54+00:00
78+
Pete Cook
79+
email@example.com
80+
Merge remote-tracking branch 'random-branch' into master
81+
__AUTO_CHANGELOG_MESSAGE_SEPARATOR__
82+
1 file changed, 1 insertion(+)
83+
7584
__AUTO_CHANGELOG_COMMIT_SEPARATOR__17fbef87e82889f01d8257900f7edc55b05918a2
7685

7786
2015-12-28T11:35:54+00:00

0 commit comments

Comments
 (0)