mirror of
https://github.com/maptiler/tileserver-gl.git
synced 2024-10-10 18:37:41 +03:00
50df4480ca
* chore: migrate husky to v9
* fix: prepare npm script lol 🤷♂️
19 lines
371 B
Plaintext
Executable File
19 lines
371 B
Plaintext
Executable File
NAME=$(git config user.name)
|
|
EMAIL=$(git config user.email)
|
|
|
|
if [ -z "$NAME" ]; then
|
|
echo "empty git config user.name"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$EMAIL" ]; then
|
|
echo "empty git config user.email"
|
|
exit 1
|
|
fi
|
|
|
|
git interpret-trailers --if-exists doNothing --trailer \
|
|
"Signed-off-by: $NAME <$EMAIL>" \
|
|
--in-place "$1"
|
|
|
|
npm exec --no -- commitlint --edit $1
|