diff options
author | Rich Trott <rtrott@gmail.com> | 2018-08-22 05:15:14 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2018-10-17 21:20:26 +0300 |
commit | c5c07786b52e436dce7469a373a48c21583bb81c (patch) | |
tree | c00edff87b5317bcea82f77be440cfd357f0148a /.travis.yml | |
parent | 6580ce54dc4b5ba2d64bbda3ecd0a001b5968e1f (diff) |
tools: apply linting to first commit in PRs
Use Travis-CI to check the formatting of the first commit in a pull
request. This will hopefully reduce formatting errors and nits about
them in pull requests.
PR-URL: https://github.com/nodejs/node/pull/22452
Reviewed-By: Weijia Wang <starkwang@126.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Steven R Loomis <srloomis@us.ibm.com>
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 3dc3a73c333..3acc2827975 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,6 +12,8 @@ matrix: - NODE=$(which node) 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 - name: "Test Suite" install: - ./configure |