diff --git a/bridge/github/import.go b/bridge/github/import.go index e87c6b4b04be8919c414b8e9ef82cbc99288510b..c162d70e2239caaa26ef4cfc5977057aeb00bde6 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{ diff --git a/bridge/github/import_query.go b/bridge/github/import_query.go index 34931c7d53bc98fc9206937a91e6ff8ff4f5bca4..89d7859d0c460669de5495cc75fedd14b917f7a1 100644 --- a/bridge/github/import_query.go +++ b/bridge/github/import_query.go @@ -160,12 +160,11 @@ type commentEditQuery struct { } `graphql:"repository(owner: $owner, name: $name)"` } -type userQuery struct { +type ghostQuery struct { User struct { Login githubv4.String AvatarUrl githubv4.String Name *githubv4.String - Email githubv4.String } `graphql:"user(login: $login)"` }