Skip to content

Commit

Permalink
Merge pull request #326 from drone/atmsn/bb_prauthor
Browse files Browse the repository at this point in the history
Update Bitbucket PR author login
  • Loading branch information
bradrydzewski authored Nov 19, 2024
2 parents 63abea2 + df65124 commit 7dc2e34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scm/driver/bitbucket/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func convertPullRequest(from *pr) *scm.PullRequest {
Sha: from.Destination.Commit.Hash,
},
Author: scm.User{
Login: from.Author.Nickname,
ID: from.Author.AccountID,
Name: from.Author.DisplayName,
Avatar: from.Author.Links.Avatar.Href,
},
Expand Down
2 changes: 1 addition & 1 deletion scm/driver/bitbucket/testdata/pr.json.golden
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"Name": "Lachlan-Vass/ios-date-picker-component-duplicate-marc-1579222909688"
},
"Author": {
"Login": "Lachlan",
"ID": "5c7c7b1a0b79db7c3e33eca2",
"Name": "Lachlan Vass",
"Avatar": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/5c7c7b1a0b79db7c3e33eca2/6b6b8178-0da0-4a37-b0dd-f8b5e3628eaa/128"
},
Expand Down
2 changes: 1 addition & 1 deletion scm/driver/bitbucket/testdata/prs.json.golden
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"Name": "Lachlan-Vass/ios-date-picker-component-duplicate-marc-1579222909688"
},
"Author": {
"Login": "Lachlan",
"ID": "5c7c7b1a0b79db7c3e33eca2",
"Name": "Lachlan Vass",
"Avatar": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/5c7c7b1a0b79db7c3e33eca2/6b6b8178-0da0-4a37-b0dd-f8b5e3628eaa/128"
},
Expand Down

0 comments on commit 7dc2e34

Please sign in to comment.