Compare commits

..

1 commit

Author SHA1 Message Date
ZoopaMario 4be9726e8b Add workflows verifying bash and commit messages
This PR adds the first two workflows:
1. Bash linter
2. Commit message verification
2024-12-29 04:59:16 +01:00

View file

@ -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)