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 <art27@cantab.net>
Reviewed-by: 6543 <6543@noreply.gitea.io>
This commit is contained in:
Lunny Xiao 2020-03-06 11:54:25 +00:00 committed by 6543
parent fe3041f2f9
commit cbd79ff6d9
1 changed files with 4 additions and 0 deletions

View File

@ -54,5 +54,9 @@ func New(configPath string) (*Config, error) {
}
}
if cfg.Service == "" {
cfg.Service = "github"
}
return cfg, nil
}