mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
12 lines
286 B
Bash
Executable File
12 lines
286 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
if ! [ -x "$(command -v commitlint)" ]; then
|
|
echo "commitlint is not installed. please run 'npm i -g commitlint'"
|
|
exit 1
|
|
fi
|
|
|
|
for commit_hash in $(git log --pretty=format:%H origin/master..HEAD); do
|
|
commitlint -f ${commit_hash}~1 -t ${commit_hash}
|
|
done
|