Skip to content

Commit

Permalink
#95 set user to username in bitbucket if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperspencer committed Feb 25, 2022
1 parent 9e4e9e1 commit dd14183
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bitbucket/bitbucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dd14183

Please sign in to comment.