Skip to content

Commit

Permalink
🔊 Add some logging to gitmoji CI check
Browse files Browse the repository at this point in the history
  • Loading branch information
vis4rd committed Sep 22, 2024
1 parent 1309bfa commit 67211f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/ensure_all_commits_start_with_gitmoji.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ gitmoji_list_file=$2
# Check each commit message
is_ok=true
while IFS= read -r commit; do
echo "Checking commit message: '$commit'"
scripts/ensure_commit_starts_with_gitmoji.sh "$commit" "$gitmoji_list_file"
if [[ $? -eq 1 ]]; then
is_ok=false
Expand All @@ -19,4 +20,7 @@ done < "$commit_messages_file"
if [[ $is_ok == false ]]; then
echo "Commit message does not start with a Gitmoji: '$commit'"
exit 1
else
echo "All commit messages start with a Gitmoji! :)"
exit 0
fi

0 comments on commit 67211f8

Please sign in to comment.