You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: move ignore wildcard matching to isIgnore method
* hide former wildcards inside new utility
* remove related documentation
* emit warning when wildcard configuration is passed
BREAKING CHANGES
* wildcards config is now ignored entirely
test('should return false when called without arguments',t=>{
5
+
t.false(isIgnored());
6
+
});
7
+
8
+
test('should return false when called with empty string',t=>{
9
+
t.false(isIgnored(''));
10
+
});
11
+
12
+
test('should return false for normal commit',t=>{
13
+
t.false(isIgnored('initial commit'));
14
+
});
15
+
16
+
test('should return false for branch merges',t=>{
17
+
t.true(isIgnored('Merge branch \'iss53\''));
18
+
});
19
+
20
+
test('should return true for merged PRs',t=>{
21
+
t.true(isIgnored('Merge pull request #369'));
22
+
});
23
+
24
+
test('should return true for revert commits',t=>{
25
+
t.true(isIgnored(`Revert "docs: add recipe for linting of all commits in a PR (#36)"\n\nThis reverts commit 1e69d542c16c2a32acfd139e32efa07a45f19111.`));
26
+
t.true(isIgnored(`revert "docs: add recipe for linting of all commits in a PR (#36)"\n\nThis reverts commit 1e69d542c16c2a32acfd139e32efa07a45f19111.`));
27
+
});
28
+
29
+
test('should return true for npm version commits',t=>{
0 commit comments