From ae9c90c0e5479c46047e6120684e95ddf9493ac6 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 9 Oct 2018 21:51:55 -0700 Subject: [PATCH 1/3] 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 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 3acc2827975d63..fad2e7f0c77509 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 From 6ef8ed75d883c546025fa5ba0bbd03da07e1bd9a Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 9 Oct 2018 22:02:47 -0700 Subject: [PATCH 2/3] fixup! tools: make Travis commit linting more robust --- fhqwhgads | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 fhqwhgads diff --git a/fhqwhgads b/fhqwhgads new file mode 100644 index 00000000000000..e69de29bb2d1d6 From 7a6dd247e8bdad12bcc5bea6521ca0ba030c8fff Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 9 Oct 2018 22:03:00 -0700 Subject: [PATCH 3/3] fixup! fixup! tools: make Travis commit linting more robust --- fhqwhgads | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 fhqwhgads diff --git a/fhqwhgads b/fhqwhgads deleted file mode 100644 index e69de29bb2d1d6..00000000000000