-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlefthook.yml
38 lines (36 loc) ยท 1.14 KB
/
lefthook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
pre-push:
parallel: true
commands:
test:
run: pnpm run ci:test
format:
run: pnpm run check:biome
stage_fixed: true
pre-commit:
commands:
format:
run: pnpm run check:biome
stage_fixed: true
commit-msg:
commands:
lint-commit-msg:
run: |
npx commitlint --edit || {
echo "โ ์ปค๋ฐ ๋ฉ์์ง๊ฐ ํ์์ ๋ง์ง ์์์"
echo ""
echo "๐ Conventinal Commits Docs"
echo "https://www.conventionalcommits.org/ko/v1.0.0"
echo ""
echo "Conventional Commit ๊ท์น์ ๋ง๊ฒ ๋ฉ์์ง๋ฅผ ์์ฑํด์ฃผ์ธ์."
echo ""
echo "โ
Examples:"
echo " feat: ~~๊ธฐ๋ฅ์ ๊ฐ๋ฐํ์ด์"
echo " fix: ~~๋ฒ๊ทธ๋ฅผ ๊ณ ์ณค์ด์"
echo " docs: ๋ฌธ์๋ฅผ ์์ ํ์ด์"
echo " style: ์ฝ๋ ํฌ๋งท์ ๋ณ๊ฒฝํ์ด์"
echo " refactor: ๊ธฐ๋ฅ ๋ณ๊ฒฝ์ ํ์ง ์๊ณ ์ฝ๋๋ฅผ ๊ฐ์ ํ์ด์"
echo ""
echo "๐ ์ฌ์ฉ ๊ฐ๋ฅํ ์ต์
์ด์์:"
echo " feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert"
exit 1
}