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 authored and fallion committed Nov 25, 2023
1 parent f9e5f22 commit 4b137aa
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

1 comment on commit 4b137aa

@vercel
Copy link

@vercel vercel bot commented on 4b137aa Nov 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.