fix(validation): update error message for invalid commit format
All checks were successful
Lint Pull Request / Lint Pr Title (pull_request) Successful in 9s

This commit is contained in:
Jan K9f 2025-04-09 18:22:37 +02:00
parent c84b1ecd26
commit 9b1a6a928e
Signed by: jank
GPG key ID: B9F475106B20F144

View file

@ -17,7 +17,7 @@ func ValidateConventionalCommit(commit string) error {
match := re.FindStringSubmatch(commit)
if len(match) == 0 {
return fmt.Errorf("invalid commit format")
return fmt.Errorf("Invalid PR title")
}
typeIndex := re.SubexpIndex("type")