Skip to content

Commit

Permalink
ci: Fix commit message format validation in sanitizer script
Browse files Browse the repository at this point in the history
Enhanced the regex in `sanatizer-git-commit-messages` to allow
alphanumeric characters and ensure a more flexible message format.

Maintenance-Type: ci
  • Loading branch information
psaavedra committed Feb 25, 2025
1 parent 5945fce commit 972acfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/scripts/sanatizer-git-commit-messages
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ echo "$commits" > commit_messages.txt

# Check commit messages format
while IFS= read -r line; do
if ! [[ $line =~ ^[a-zA-Z]+:\ [a-zA-Z]+ ]]; then
if ! [[ $line =~ ^[a-zA-Z0-9-]+:\ .+$ ]]; then
echo "Invalid commit message: $line"
error_found=1
fi
Expand Down

0 comments on commit 972acfe

Please sign in to comment.