mirror of https://github.com/nodejs/node.git
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>pull/22606/merge
parent
e1d4b0a646
commit
2cf6a94839
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue