Compare commits
1 commit
ba9b69350e
...
4be9726e8b
Author | SHA1 | Date | |
---|---|---|---|
|
4be9726e8b |
|
@ -28,17 +28,6 @@ jobs:
|
|||
fi
|
||||
echo "Subject start check passed."
|
||||
|
||||
- name: Check Commit Message Type and Format
|
||||
run: |
|
||||
echo "Checking commit message type and format..."
|
||||
commit_message=$(git log -1 --pretty=%B)
|
||||
if ! echo "$commit_message" | grep -Eq "^(feat|fix|chore|docs|style|refactor|test|perf):"; then
|
||||
echo "Error: Commit message does not follow the required format: <type>: <subject>"
|
||||
exit 1
|
||||
fi
|
||||
echo "Commit message type and format check passed."
|
||||
|
||||
- name: Check Subject Length
|
||||
run: |
|
||||
echo "Checking subject length..."
|
||||
commit_subject=$(git log -1 --pretty=%B | head -n 1)
|
||||
|
|
Loading…
Reference in a new issue