Skip to content

Commit 4170721

Browse files
committed
fix(travis-cli): passdown argv to lint command
passdown travis-cli argument to @commitlint/cli
1 parent 3fce339 commit 4170721

File tree

1 file changed

+4
-2
lines changed
  • @commitlint/travis-cli/src

1 file changed

+4
-2
lines changed

@commitlint/travis-cli/src/cli.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ async function main() {
4242
// Restore stashed changes if any
4343
await pop();
4444

45+
const args = process.argv.slice(2);
46+
4547
// Lint all commits in TRAVIS_COMMIT_RANGE if available
4648
if (IS_PR && RANGE) {
4749
const [start, end] = RANGE.split('.').filter(Boolean);
48-
await lint(['--from', start, '--to', end]);
50+
await lint(['--from', start, '--to', end, ...args]);
4951
} else {
5052
const input = await log(COMMIT);
51-
await lint([], {input});
53+
await lint(args, {input});
5254
}
5355
}
5456

0 commit comments

Comments
 (0)