fix(main): improve error message for invalid PR title
Some checks failed
Lint Pull Request / Lint Pr Title (pull_request) Failing after 9s

This commit is contained in:
Jan K9f 2025-04-09 18:20:34 +02:00
parent 19b376ac40
commit 8981c8367e
Signed by: jank
GPG key ID: B9F475106B20F144

View file

@ -39,7 +39,7 @@ func main() {
prTitle := event.PullRequest.Title
semanticValidationErr := validation.ValidateConventionalCommit(prTitle)
if semanticValidationErr != nil {
fmt.Println(err)
fmt.Println("Invalid Pr Title")
os.Exit(1)
}
os.Exit(0)