conventional-commits-filter
Advanced tools
Comparing version 0.0.1 to 0.1.0
@@ -23,3 +23,3 @@ 'use strict'; | ||
commit = modifyValues(commit, function (val) { | ||
var raw = modifyValues(commit.raw, function (val) { | ||
if (typeof val === 'string') { | ||
@@ -41,3 +41,3 @@ return val.trim(); | ||
ignoreThis = isSubset(commit, ignore); | ||
ignoreThis = isSubset(raw, ignore); | ||
return ignoreThis; | ||
@@ -44,0 +44,0 @@ }); |
{ | ||
"name": "conventional-commits-filter", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "Filter out reverted commits parsed by conventional-commits-parser", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/stevemao/conventional-commits-filter", |
105
README.md
@@ -28,10 +28,27 @@ # conventional-commits-filter [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url] | ||
header: 'feat(): amazing new module', | ||
hash: '56185b7356766d2b30cfa2406b257080272e0b7a' | ||
hash: '56185b7356766d2b30cfa2406b257080272e0b7a', | ||
body: null | ||
}, | ||
hash: '789d898b5f8422d7f65cc25135af2c1a95a125ac\n' | ||
hash: '789d898b5f8422d7f65cc25135af2c1a95a125ac\n', | ||
raw: { | ||
type: 'revert', | ||
scope: null, | ||
subject: 'feat(): amazing new module', | ||
header: 'revert: feat(): amazing new module\n', | ||
body: 'This reverts commit 56185b7356766d2b30cfa2406b257080272e0b7a.\n', | ||
footer: null, | ||
notes: [], | ||
references: [], | ||
revert: { | ||
header: 'feat(): amazing new module', | ||
hash: '56185b7356766d2b30cfa2406b257080272e0b7a', | ||
body: null | ||
}, | ||
hash: '789d898b5f8422d7f65cc25135af2c1a95a125ac\n' | ||
} | ||
}, { | ||
type: 'feat', | ||
type: 'Features', | ||
scope: null, | ||
subject: 'amazing new module', | ||
header: 'feat(): amazing new module\n', | ||
subject: 'wow', | ||
header: 'amazing new module\n', | ||
body: null, | ||
@@ -42,5 +59,17 @@ footer: 'BREAKING CHANGE: Not backward compatible.\n', | ||
revert: null, | ||
hash: '56185b7356766d2b30cfa2406b257080272e0b7a\n' | ||
hash: '56185b', | ||
raw: { | ||
type: 'feat', | ||
scope: null, | ||
subject: 'amazing new module', | ||
header: 'feat(): amazing new module\n', | ||
body: null, | ||
footer: 'BREAKING CHANGE: Not backward compatible.\n', | ||
notes: [], | ||
references: [], | ||
revert: null, | ||
hash: '56185b7356766d2b30cfa2406b257080272e0b7a\n' | ||
} | ||
}, { | ||
type: 'feat', | ||
type: 'What', | ||
scope: null, | ||
@@ -54,5 +83,17 @@ subject: 'new feature', | ||
revert: null, | ||
hash: '815a3f0717bf1dfce007bd076420c609504edcf3\n' | ||
hash: '815a3f0', | ||
raw: { | ||
type: 'feat', | ||
scope: null, | ||
subject: 'new feature', | ||
header: 'feat(): new feature\n', | ||
body: null, | ||
footer: null, | ||
notes: [], | ||
references: [], | ||
revert: null, | ||
hash: '815a3f0717bf1dfce007bd076420c609504edcf3\n' | ||
} | ||
}, { | ||
type: 'chore', | ||
type: 'Chores', | ||
scope: null, | ||
@@ -66,3 +107,15 @@ subject: 'first commit', | ||
revert: null, | ||
hash: '74a3e4d6d25dee2c0d6483a0a3887417728cbe0a\n' | ||
hash: '74a3e4d6d25', | ||
raw: { | ||
type: 'chore', | ||
scope: null, | ||
subject: 'first commit', | ||
header: 'chore: first commit\n', | ||
body: null, | ||
footer: null, | ||
notes: [], | ||
references: [], | ||
revert: null, | ||
hash: '74a3e4d6d25dee2c0d6483a0a3887417728cbe0a\n' | ||
} | ||
}]; | ||
@@ -74,3 +127,3 @@ | ||
[{ | ||
type: 'feat', | ||
type: 'What', | ||
scope: null, | ||
@@ -84,5 +137,17 @@ subject: 'new feature', | ||
revert: null, | ||
hash: '815a3f0717bf1dfce007bd076420c609504edcf3\n' | ||
hash: '815a3f0', | ||
raw: { | ||
type: 'feat', | ||
scope: null, | ||
subject: 'new feature', | ||
header: 'feat(): new feature\n', | ||
body: null, | ||
footer: null, | ||
notes: [], | ||
references: [], | ||
revert: null, | ||
hash: '815a3f0717bf1dfce007bd076420c609504edcf3\n' | ||
} | ||
}, { | ||
type: 'chore', | ||
type: 'Chores', | ||
scope: null, | ||
@@ -96,3 +161,15 @@ subject: 'first commit', | ||
revert: null, | ||
hash: '74a3e4d6d25dee2c0d6483a0a3887417728cbe0a\n' | ||
hash: '74a3e4d6d25', | ||
raw: { | ||
type: 'chore', | ||
scope: null, | ||
subject: 'first commit', | ||
header: 'chore: first commit\n', | ||
body: null, | ||
footer: null, | ||
notes: [], | ||
references: [], | ||
revert: null, | ||
hash: '74a3e4d6d25dee2c0d6483a0a3887417728cbe0a\n' | ||
} | ||
}] | ||
@@ -99,0 +176,0 @@ */ |
7544
185