From cbd79ff6d9497da21a63f32c90ca8bfed84b167e Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 6 Mar 2020 11:54:25 +0000 Subject: [PATCH] Set default service as github when service type empty (#40) Set default service as github Reviewed-on: https://gitea.com/gitea/changelog/pulls/40 Reviewed-by: Andrew Thornton Reviewed-by: 6543 <6543@noreply.gitea.io> --- config/config.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/config.go b/config/config.go index 67e41f6..fcd9b90 100644 --- a/config/config.go +++ b/config/config.go @@ -54,5 +54,9 @@ func New(configPath string) (*Config, error) { } } + if cfg.Service == "" { + cfg.Service = "github" + } + return cfg, nil }