From 742d1f07c000d868e54dff0432a9176d12199620 Mon Sep 17 00:00:00 2001 From: zzjc1234 <2359047351@qq.com> Date: Sun, 13 Oct 2024 12:45:02 +0800 Subject: [PATCH] fix(healthcheck/release): style check --- pkg/healthcheck/tag.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/healthcheck/tag.go b/pkg/healthcheck/tag.go index 8142d60..6ee557f 100644 --- a/pkg/healthcheck/tag.go +++ b/pkg/healthcheck/tag.go @@ -71,7 +71,7 @@ func checkConsist(tags []string, target string) (err error) { } } if !found { - return fmt.Errorf("Wrong release tag in '%s' or missing release tags. Please use '%s'.", strings.Join(tags, "', '"), target) + return fmt.Errorf("Inconsistent release tag with scope in '%s' or missing release tags. Please use '%s'.", strings.Join(tags, "', '"), target) } return nil } @@ -86,7 +86,7 @@ func checkStyle(target string, recommendTag []string) (err error) { } } if !found { - return fmt.Errorf("Wrong release tag '%s' or missing release tags. Please use one of '%s'.", target, strings.Join(recommendTag, "', '")) + return fmt.Errorf("Release tag '%s' doesn't match recommended tag list. Please use one of '%s'.", target, strings.Join(recommendTag, "', '")) } return nil }