From 4a56cd81aa82dabf04b62e4193583c8916eda609 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Fri, 4 Oct 2024 02:11:21 -0400 Subject: [PATCH] docs: update for `NonAsciiMsg` --- pkg/healthcheck/commit.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/healthcheck/commit.go b/pkg/healthcheck/commit.go index 4bfecac..8c9d041 100644 --- a/pkg/healthcheck/commit.go +++ b/pkg/healthcheck/commit.go @@ -45,8 +45,7 @@ func checkMsg(msg string) bool { } // nonAsciiMsg checks for non-ASCII characters in the commit message. -// If the message starts with "Merge pull request", it skips the non-ASCII characters check. -// Otherwise, it iterates over each character in the message and checks if it is a non-ASCII character. +// It iterates over each character in the message and checks if it is a non-ASCII character. // If a non-ASCII character is found, it returns an error indicating not to use non-ASCII characters in commit messages. // Otherwise, it returns nil indicating that the commit message is valid. // It skips the non-ASCII characters check for lines starting with specific keywords like "Co-authored-by", "Reviewed-by", and "Co-committed-by".