From dd1418347dca9bc34af2b4e977892b98702cb3c3 Mon Sep 17 00:00:00 2001 From: Andreas Wachter Date: Fri, 25 Feb 2022 09:16:15 +0100 Subject: [PATCH] #95 set user to username in bitbucket if empty --- bitbucket/bitbucket.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bitbucket/bitbucket.go b/bitbucket/bitbucket.go index af79ebe..31b5201 100644 --- a/bitbucket/bitbucket.go +++ b/bitbucket/bitbucket.go @@ -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 {