mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 04:23:46 +00:00
lint: Rename lint-commits to keep tab-complete fast.
This commit is contained in:
12
tools/commit-message-lint
Executable file
12
tools/commit-message-lint
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Lints all commit messages that are newer than upstream/master.
|
||||
# The rules can be found in /.gitlint
|
||||
|
||||
# If this script is running on TravisCI, $UPSTREAM_MASTER would be set to the
|
||||
# latest HEAD in travis.yml
|
||||
if [ ! $TRAVIS ]; then
|
||||
UPSTREAM_MASTER=upstream/master
|
||||
fi
|
||||
|
||||
gitlint --commits $UPSTREAM_MASTER...HEAD
|
||||
Reference in New Issue
Block a user