#95 set user to username in bitbucket if empty

This commit is contained in:
Andreas Wachter
2022-02-25 09:16:15 +01:00
parent 9e4e9e1d6a
commit dd1418347d
+3
View File
@@ -12,6 +12,9 @@ func Get(conf *types.Conf) []types.Repo {
repos := []types.Repo{}
for _, repo := range conf.Source.BitBucket {
client := bitbucket.NewBasicAuth(repo.Username, repo.Password)
if repo.User == "" {
repo.User = repo.Username
}
if repo.Url == "" {
repo.Url = bitbucket.DEFAULT_BITBUCKET_API_BASE_URL
} else {