Skip to content

Commit

Permalink
Chore: finally update commit convention using git hooks #1
Browse files Browse the repository at this point in the history
  • Loading branch information
rmdnps10 committed Aug 23, 2024
1 parent 0eb40bc commit ad297f6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi
MESSAGE=$(cat "$COMMIT_MSG_FILE")

# 커밋 메시지 포맷 정규식
COMMITFORMAT="^(Feat|Fix|Docs|Style|Refactor|Design|Comment|Rename|Remove|Test|!HOTFIX|!BREAKING CHANGE): (.*)"
COMMITFORMAT="^(Feat|Fix|Docs|Style|Chore|Refactor|Design|Comment|Rename|Remove|Test|!HOTFIX|!BREAKING CHANGE): (.*)"

# 포맷 검증
if ! [[ "$MESSAGE" =~ $COMMITFORMAT ]]; then
Expand All @@ -32,9 +32,8 @@ if ! [[ "$MESSAGE" =~ $COMMITFORMAT ]]; then
echo " Refactor: 코드 리팩토링"
echo " Comment: 필요한 주석 추가 및 변경"
echo " Docs: 문서 수정"
echo " Chore : build와 관련된 부분, 패키지 매니저 설정 등 여러가지 production code와 무관한 부분, 자잘한 부분!"
echo " Test: 빌드 업무 수정, 패키지 매니저 수정, 패키지 관리자 구성 등 업데이트, Production Code 변경 없음"
echo " Rename: 파일 혹은 폴더명을 수정하거나 옮기는 작업만인 경우"
echo " Remove: 파일을 삭제하는 작업만 수행한 경우"
echo ""
echo "=================================================================================="
echo ""
Expand Down

0 comments on commit ad297f6

Please sign in to comment.