Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
snaka committed Sep 20, 2024
1 parent a683c02 commit a898dad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (cfg *config) initializeFile() error {
return nil
}

func (cfg *config) SetRelaseBranch(br string) error {
func (cfg *config) SetReleaseBranch(br string) error {
if err := cfg.set(configReleaseBranch, br); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestConfig(t *testing.T) {
if e, g := "", cfg.ReleaseBranch(); e != g {
t.Errorf("got: %s, expext: %s", g, e)
}
if err := cfg.SetRelaseBranch("main"); err != nil {
if err := cfg.SetReleaseBranch("main"); err != nil {
t.Error(err)
}
if e, g := "main", cfg.ReleaseBranch(); e != g {
Expand Down
2 changes: 1 addition & 1 deletion tagpr.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (tp *tagpr) Run(ctx context.Context) error {
if releaseBranch == "" {
releaseBranch = defaultReleaseBranch
}
if err := tp.cfg.SetRelaseBranch(releaseBranch); err != nil {
if err := tp.cfg.SetReleaseBranch(releaseBranch); err != nil {
return err
}
}
Expand Down

0 comments on commit a898dad

Please sign in to comment.