From eda8b58d9f2e85f1bae92ce3b70f279b89031046 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Tue, 13 Dec 2022 09:58:40 +0530 Subject: git: find main branch from config --- config/config.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'config/config.go') diff --git a/config/config.go b/config/config.go index 1a29e4f..278e17e 100644 --- a/config/config.go +++ b/config/config.go @@ -8,10 +8,11 @@ import ( ) 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 @@ type Config struct { } `yaml:"meta"` Server struct { Host string `yaml:"host"` - Port int `yaml:"port"` + Port int `yaml:"port"` } `yaml:"server"` } -- cgit