Skip to content

Commit

Permalink
Run go fmt.
Browse files Browse the repository at this point in the history
pr:fmtAll
  • Loading branch information
mattskl-openai committed Dec 19, 2024
1 parent e76c7c6 commit b155833
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ type RepoConfig struct {

ForceFetchTags bool `default:"false" yaml:"forceFetchTags"`

ShowPrTitlesInStack bool `default:"false" yaml:"showPrTitlesInStack"`
BranchPushIndividually bool `default:"false" yaml:"branchPushIndividually"`
PrPrefix string `default:"spr" yaml:"prPrefix"`
ShowPrTitlesInStack bool `default:"false" yaml:"showPrTitlesInStack"`
BranchPushIndividually bool `default:"false" yaml:"branchPushIndividually"`
PrPrefix string `default:"spr" yaml:"prPrefix"`
}

type UserConfig struct {
Expand Down
3 changes: 2 additions & 1 deletion git/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ func BranchNameFromCommit(cfg *config.Config, commit Commit) string {

var CommitIdPattern = `\w{3,40}`
var BranchNameRegex = regexp.MustCompile(`spr/([a-zA-Z0-9_\-/\.]+)/([a-f0-9]{8})$`)
func GetCommitIdFromBranchName(cfg *config.Config, branchName string) (string) {

func GetCommitIdFromBranchName(cfg *config.Config, branchName string) string {
prPrefix := cfg.Repo.PrPrefix
var BranchNameRegex2 = regexp.MustCompile(prPrefix + `/(` + CommitIdPattern + `)$`)
matches := BranchNameRegex2.FindStringSubmatch(branchName)
Expand Down
1 change: 1 addition & 0 deletions terminal/terminal_other.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !windows
// +build !windows

package terminal
Expand Down
1 change: 1 addition & 0 deletions terminal/terminal_windows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build windows
// +build windows

package terminal
Expand Down

0 comments on commit b155833

Please sign in to comment.