From 1661eddc01221bfb36f25ec96543f14338429bf1 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Fri, 17 Nov 2023 10:56:01 +0545 Subject: [PATCH] fix: correct the spelling of ConventionalStyle --- internal/prpipeline/run.go | 2 +- internal/prpipeline/types.go | 2 +- internal/root_runner/run.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/prpipeline/run.go b/internal/prpipeline/run.go index cf2df67c..746908dd 100644 --- a/internal/prpipeline/run.go +++ b/internal/prpipeline/run.go @@ -31,7 +31,7 @@ func (pipeline *Pipeline) Run() (*dispatcher.PipelineSuccess, error) { Message: aurora.Sprintf(aurora.Green("Success! Found the following JIRA issue references: %v"), references), }, nil } - case ConvetionalStyle: + case ConventionalStyle: commit := quoad.ParseCommitMessage(*title) err := text.CheckMessageTitle(commit, true) diff --git a/internal/prpipeline/types.go b/internal/prpipeline/types.go index 84fe6d78..9b1d54b7 100644 --- a/internal/prpipeline/types.go +++ b/internal/prpipeline/types.go @@ -4,5 +4,5 @@ type PRStyle = string const ( JiraStyle PRStyle = "jira" - ConvetionalStyle PRStyle = "conventional" + ConventionalStyle PRStyle = "conventional" ) diff --git a/internal/root_runner/run.go b/internal/root_runner/run.go index 794293b9..019d29dc 100644 --- a/internal/root_runner/run.go +++ b/internal/root_runner/run.go @@ -50,7 +50,7 @@ func (runner *Runner) Run(options RunnerOptions, args ...string) error { } if viper.IsSet("pull_request.conventional") { - prOptions.Style = prpipeline.ConvetionalStyle + prOptions.Style = prpipeline.ConventionalStyle } prPipe, err := prpipeline.New(prOptions)