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.
  • Loading branch information
Trott committed Oct 5, 2018
1 parent ff3fd3b commit 43e129e
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 43e129e

Please sign in to comment.