Skip to content

Commit

Permalink
tools: apply linting to first commit in PRs
Browse files Browse the repository at this point in the history
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: nodejs#22452
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Steven R Loomis <[email protected]>
  • Loading branch information
Trott committed Oct 5, 2018
1 parent e1d4b0a commit 2cf6a94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2cf6a94

Please sign in to comment.