diff options
author | Michael Muré <batolettre@gmail.com> | 2020-02-25 21:35:57 +0100 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-02-25 21:35:57 +0100 |
commit | 893de4f5c0e852fac9a73e0c0243bc038af75f17 (patch) | |
tree | 6129d0a6e2efbfa81b26534ee5aeb65ba1261bfe /bridge/github/import.go | |
parent | 68acfa519ab6656648d1e976db2a4190bbeb5f44 (diff) | |
download | git-bug-893de4f5c0e852fac9a73e0c0243bc038af75f17.tar.gz |
identity: bring back the login to hold that info from bridges (purely informational)
Diffstat (limited to 'bridge/github/import.go')
-rw-r--r-- | bridge/github/import.go | 2 |
1 files changed, 2 insertions, 0 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), |