mirror of
https://github.com/cooperspencer/gickup.git
synced 2026-10-21 04:35:21 +00:00
#95 set user to username in bitbucket if empty
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user