zulip/tools/commit-message-lint

16 lines
389 B
Plaintext
Raw Normal View History

#!/bin/bash
# Lint all commit messages that are newer than upstream/master if running
2017-07-31 18:27:32 +02:00
# locally or the commits in the push or PR if in Travis CI.
# The rules can be found in /.gitlint
if [ "$TRAVIS" ]; then
# Work around https://github.com/travis-ci/travis-ci/issues/4596
range="${TRAVIS_COMMIT_RANGE/.../..}"
else
range="upstream/master..HEAD"
fi
gitlint --commits $range