fix(main): improve error message for invalid PR title
All checks were successful
Lint Pull Request / Lint Pr Title (pull_request) Successful in 9s
All checks were successful
Lint Pull Request / Lint Pr Title (pull_request) Successful in 9s
This commit is contained in:
parent
8981c8367e
commit
c84b1ecd26
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -39,7 +39,7 @@ func main() {
|
|||
prTitle := event.PullRequest.Title
|
||||
semanticValidationErr := validation.ValidateConventionalCommit(prTitle)
|
||||
if semanticValidationErr != nil {
|
||||
fmt.Println("Invalid Pr Title")
|
||||
fmt.Println(semanticValidationErr)
|
||||
os.Exit(1)
|
||||
}
|
||||
os.Exit(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue