We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
check-commit-convention.yml
1 parent d1a76d1 commit f74da0aCopy full SHA for f74da0a
1 file changed
.github/workflows/check-commit-convention.yml
@@ -9,7 +9,7 @@ jobs:
9
- name: Checkout code with full history
10
uses: actions/checkout@v4
11
with:
12
- fetch-depth: 0 # 전체 Git 히스토리를 가져옴 (PR 비교 가능)
+ fetch-depth: 0 # 전체 Git 히스토리를 가져옴
13
14
- name: Get base branch
15
run: echo "BASE_BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV
@@ -28,6 +28,13 @@ jobs:
28
invalid_commits=0
29
echo "🔍 Checking commit message convention..."
30
while IFS= read -r commit_message; do
31
+ # "Merge"로 시작하는 메시지는 검사에서 제외
32
+ if [[ "$commit_message" =~ ^Merge ]]; then
33
+ echo "⚡ Skipping merge commit: $commit_message"
34
+ continue
35
+ fi
36
+
37
+ # Commit message validation
38
if [[ ! "$commit_message" =~ ^(feat|fix|docs|style|refactor|test|chore)(\(.+\))?!?:\ .+ ]]; then
39
echo "❌ Invalid commit message: $commit_message"
40
invalid_commits=$((invalid_commits + 1))
0 commit comments