git: find main branch from config
1 file changed, 6 insertions(+), 5 deletions(-)
changed files
M config/config.go → config/config.go
@@ -8,10 +8,11 @@ "gopkg.in/yaml.v3" ) type Config struct { - Git struct { - ScanPath string `yaml:"scanPath"` - Readme []string `yaml:"readme"` - } `yaml:"git"` + Repo struct { + ScanPath string `yaml:"scanPath"` + Readme []string `yaml:"readme"` + MainBranch []string `yaml:"mainBranch"` + } `yaml:"repo"` Template struct { Dir string `yaml:"dir"` } `yaml:"template"`@@ -21,7 +22,7 @@ Description string `yaml:"description"` } `yaml:"meta"` Server struct { Host string `yaml:"host"` - Port int `yaml:"port"` + Port int `yaml:"port"` } `yaml:"server"` }