Skip to content

Commit

Permalink
fix: correct the spelling of ConventionalStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Nov 17, 2023
1 parent 916c7b4 commit 1661edd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/prpipeline/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion internal/prpipeline/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ type PRStyle = string

const (
JiraStyle PRStyle = "jira"
ConvetionalStyle PRStyle = "conventional"
ConventionalStyle PRStyle = "conventional"
)
2 changes: 1 addition & 1 deletion internal/root_runner/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1661edd

Please sign in to comment.