mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
7ca6d95b11
This should make life easier for new contributors. PR names still have to follow the convention though. This check still runs on master on the main repo.
7 lines
268 B
Bash
Executable file
7 lines
268 B
Bash
Executable file
#!/usr/bin/env sh
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
if [ $(git branch --no-color | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/') = "master" ] && [ $(git remote get-url origin) = "https://github.com/monkeytypegame/monkeytype" ]; then
|
|
npx --no -- commitlint --edit ${1}
|
|
fi
|
|
|