Skip to content

Commit

Permalink
fix: Need to set remote forge ID on user
Browse files Browse the repository at this point in the history
Signed-off-by: Thor Anker Kvisgård Lange <tal@netic.dk>
  • Loading branch information
langecode committed Sep 28, 2023
1 parent 70d1f58 commit 499c6d3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions server/forge/bitbucketserver/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,11 @@ func authorLabel(name string) string {

func convertUser(user *bb.User, token, baseURL string) *model.User {
return &model.User{
Login: user.Slug,
Token: token,
Email: user.Email,
Avatar: bitbucketAvatarURL(baseURL, user.Slug),
ForgeRemoteID: model.ForgeRemoteID(fmt.Sprintf("%d", user.ID)),
Login: user.Slug,
Token: token,
Email: user.Email,
Avatar: bitbucketAvatarURL(baseURL, user.Slug),
}
}

Expand Down

0 comments on commit 499c6d3

Please sign in to comment.