mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
tools: make Travis commit linting more robust
Use $TRAVIS_COMMIT_RANGE in .travis.yml to avoid merge commits in some situations. Refs: https://github.com/nodejs/node/pull/23307#issuecomment-428435859 PR-URL: https://github.com/nodejs/node/pull/23397 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
This commit is contained in:
1 parent
c15d236545
commit
2a8a28c436
1 file changed
+1
-1
+1
-1
@@ -13,7 +13,7 @@ matrix:
|
||||
script:
|
||||
- make lint
|
||||
# Lint the first commit in the PR.
|
||||
- git log HEAD ^$TRAVIS_BRANCH --pretty=format:'%h' --no-merges | tail -1 | xargs npx core-validate-commit --no-validate-metadata
|
||||
- git log $TRAVIS_COMMIT_RANGE --pretty=format:'%h' --no-merges | tail -1 | xargs npx core-validate-commit --no-validate-metadata
|
||||
- name: "Test Suite"
|
||||
install:
|
||||
- ./configure
|
||||
|
||||
Reference in new issue
Block a user