diff options
author | Amine Hilaly <hilalyamine@gmail.com> | 2019-07-06 11:46:59 +0200 |
---|---|---|
committer | Amine Hilaly <hilalyamine@gmail.com> | 2019-07-06 16:20:05 +0200 |
commit | 9e611ee66787b9f005540395da2ea10b3320362c (patch) | |
tree | 04cdd9508bf8c2fd1f3b928dd419a15cdb9709d0 /bridge/github/import.go | |
parent | 6323c7b10663024f03d6c8c641852c702a5d8a04 (diff) | |
download | git-bug-9e611ee66787b9f005540395da2ea10b3320362c.tar.gz |
[bridge/github] import: avoid retrieving ghost email in userQuery
request
rename userQuery to ghostQuery
Diffstat (limited to 'bridge/github/import.go')
-rw-r--r-- | bridge/github/import.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/github/import.go b/bridge/github/import.go index e87c6b4b..c162d70e 100644 --- a/bridge/github/import.go +++ b/bridge/github/import.go @@ -505,7 +505,7 @@ func (gi *githubImporter) getGhost(repo *cache.RepoCache) (*cache.IdentityCache, return nil, err } - var q userQuery + var q ghostQuery variables := map[string]interface{}{ "login": githubv4.String("ghost"), @@ -529,7 +529,7 @@ func (gi *githubImporter) getGhost(repo *cache.RepoCache) (*cache.IdentityCache, return repo.NewIdentityRaw( name, - string(q.User.Email), + "", string(q.User.Login), string(q.User.AvatarUrl), map[string]string{ |