Skip to content

Commit

Permalink
fix(is-ignored): ignore bitbuckets automatic merge (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
10xLaCroixDrinker authored and byCedric committed Feb 9, 2019
1 parent bc06c05 commit e5bdc5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion @commitlint/is-ignored/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const WILDCARDS = [
),
c => c.match(/^Merged (.*?)(in|into) (.*)/),
c => c.match(/^Merge remote-tracking branch (.*)/),
c => c.match(/^Automatic merge from (.*)/),
c => c.match(/^Automatic merge(.*)/),
c => c.match(/^Auto-merged (.*?) into (.*)/)
];

Expand Down
1 change: 1 addition & 0 deletions @commitlint/is-ignored/src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ test('should return true for bitbucket merge commits', t => {
isIgnored('Merged in feature/facebook-friends-sync (pull request #8)')
);
t.true(isIgnored('Merged develop into feature/component-form-select-card'));
t.true(isIgnored('Automatic merge'));
});

test('should return true for automatic merge commits', t => {
Expand Down

0 comments on commit e5bdc5c

Please sign in to comment.