aboutsummaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
Diffstat (limited to 'bridge')
-rw-r--r--bridge/github/import.go2
-rw-r--r--bridge/gitlab/import.go1
-rw-r--r--bridge/jira/import.go3
-rw-r--r--bridge/launchpad/import.go1
4 files changed, 6 insertions, 1 deletions
diff --git a/bridge/github/import.go b/bridge/github/import.go
index 7aec809f..a74c49c5 100644
--- a/bridge/github/import.go
+++ b/bridge/github/import.go
@@ -546,6 +546,7 @@ func (gi *githubImporter) ensurePerson(repo *cache.RepoCache, actor *actor) (*ca
i, err = repo.NewIdentityRaw(
name,
email,
+ string(actor.Login),
string(actor.AvatarUrl),
map[string]string{
metaKeyGithubLogin: string(actor.Login),
@@ -592,6 +593,7 @@ func (gi *githubImporter) getGhost(repo *cache.RepoCache) (*cache.IdentityCache,
return repo.NewIdentityRaw(
name,
"",
+ string(q.User.Login),
string(q.User.AvatarUrl),
map[string]string{
metaKeyGithubLogin: string(q.User.Login),
diff --git a/bridge/gitlab/import.go b/bridge/gitlab/import.go
index 9ebb0d88..5ed5f0e3 100644
--- a/bridge/gitlab/import.go
+++ b/bridge/gitlab/import.go
@@ -394,6 +394,7 @@ func (gi *gitlabImporter) ensurePerson(repo *cache.RepoCache, id int) (*cache.Id
i, err = repo.NewIdentityRaw(
user.Name,
user.PublicEmail,
+ user.Username,
user.AvatarURL,
map[string]string{
// because Gitlab
diff --git a/bridge/jira/import.go b/bridge/jira/import.go
index 21305bd5..3d6d5414 100644
--- a/bridge/jira/import.go
+++ b/bridge/jira/import.go
@@ -194,9 +194,10 @@ func (ji *jiraImporter) ensurePerson(repo *cache.RepoCache, user User) (*cache.I
i, err = repo.NewIdentityRaw(
user.DisplayName,
user.EmailAddress,
+ user.Key,
"",
map[string]string{
- metaKeyJiraUser: string(user.Key),
+ metaKeyJiraUser: user.Key,
},
)
diff --git a/bridge/launchpad/import.go b/bridge/launchpad/import.go
index dfcbb95e..3b6d7fe0 100644
--- a/bridge/launchpad/import.go
+++ b/bridge/launchpad/import.go
@@ -33,6 +33,7 @@ func (li *launchpadImporter) ensurePerson(repo *cache.RepoCache, owner LPPerson)
return repo.NewIdentityRaw(
owner.Name,
"",
+ owner.Login,
"",
map[string]string{
metaKeyLaunchpadLogin: owner.Login,