From 67211f808f255accc218f88d325710a51290509c Mon Sep 17 00:00:00 2001 From: vis4rd Date: Sun, 22 Sep 2024 02:16:04 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20Add=20some=20logging=20to=20gitm?= =?UTF-8?q?oji=20CI=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/ensure_all_commits_start_with_gitmoji.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/ensure_all_commits_start_with_gitmoji.sh b/scripts/ensure_all_commits_start_with_gitmoji.sh index 3b061a42..bdf7f5ad 100644 --- a/scripts/ensure_all_commits_start_with_gitmoji.sh +++ b/scripts/ensure_all_commits_start_with_gitmoji.sh @@ -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 @@ -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