Skip to content

Commit 1a85d5f

Browse files
committed
fix boards config loading from file
1 parent 20b96c7 commit 1a85d5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/checkout/config.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type board struct {
2020

2121
type config struct {
2222
BranchTypes []branchType `json:"branchTypes"`
23-
boards []board `json:"boards"`
23+
Boards []board `json:"boards"`
2424
}
2525

2626
const configFile = ".git-commands.json"
@@ -69,7 +69,7 @@ func loadConfigFile(path string) ([]list.Item, []list.Item, error) {
6969
if err := json.Unmarshal(data, &c); err != nil {
7070
return nil, nil, fmt.Errorf("error parsing config file: %w", err)
7171
}
72-
return convertBranchTypes(c.BranchTypes), convertBoards(c.boards), nil
72+
return convertBranchTypes(c.BranchTypes), convertBoards(c.Boards), nil
7373
}
7474

7575
func loadConfig() ([]list.Item, []list.Item, error) {

0 commit comments

Comments
 (0)