aboutsummaryrefslogtreecommitdiff
path: root/.githooks/commit-msg
blob: e7e8138eff08b035aaf57028a995dacc3cf4fbe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
set -euo pipefail

repo_root="$(git rev-parse --show-toplevel)"
cd "$repo_root"

if [[ "${OS:-}" == "Windows_NT" ]]; then
    python scripts/conventional_commits.py --message-file "$1"
else
    python3 scripts/conventional_commits.py --message-file "$1"
fi