Skip to content

Commit ea7e40e

Browse files
author
Simon Prochazka
committed
feat: add help message
- adds a message that will help user understand how to fix their commit Closes #30
1 parent 61fe6ac commit ea7e40e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/root_runner.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ func runRoot(cmd *cobra.Command, args []string) error {
8888

8989
fmt.Printf("%v of %v commits are not conventional commit compliant\n", aurora.Red(len(faultyCommits)), aurora.Red(len(commits)))
9090

91+
fmt.Print("\nExpected format is for example: chore(ci): this is a test\n")
92+
fmt.Print("Please see https://www.conventionalcommits.org for help on how to structure commits\n\n")
93+
9194
return errors.New(aurora.Red("Not all commits are conventiontal commits, please check the commits listed above").String())
9295
}
9396

0 commit comments

Comments
 (0)