1 parent 1d6c7be commit c7e9608Copy full SHA for c7e9608
1 file changed
.github/workflows/commit-message.yml
@@ -30,10 +30,10 @@ jobs:
30
INVALID=false
31
32
for COMMIT in $COMMITS; do
33
- MESSAGE=$(git log -1 --pretty=format:"%s" $COMMIT)
+ MESSAGE=$(git log -1 --pretty=format:"%s" $COMMIT | sed 's/^[[:space:]]*//')
34
35
# Ignorer les commits de merge
36
- if [[ "$MESSAGE" =~ ^Merge\ ]]; then
+ if [[ "$MESSAGE" =~ ^Merge\ (pull\ request|branch|remote) ]]; then
37
echo "⏭️ Commit de merge ignoré: $MESSAGE"
38
continue
39
fi
0 commit comments