diff options
author | Michael Muré <batolettre@gmail.com> | 2018-10-07 18:27:23 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-10-07 18:27:23 +0200 |
commit | 7cb7994cdae848053487d00c1730d1e865fb8623 (patch) | |
tree | bc9be185e81479d8d3e5b0fc636daea011a64e4c /bridge/github/import_query.go | |
parent | 03202fed493539c8d1fdcad7254687f951d0ca4a (diff) | |
download | git-bug-7cb7994cdae848053487d00c1730d1e865fb8623.tar.gz |
github: also pull users email
Diffstat (limited to 'bridge/github/import_query.go')
-rw-r--r-- | bridge/github/import_query.go | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/bridge/github/import_query.go b/bridge/github/import_query.go index e1dcff64..59799f6a 100644 --- a/bridge/github/import_query.go +++ b/bridge/github/import_query.go @@ -10,8 +10,17 @@ type pageInfo struct { } type actor struct { + Typename githubv4.String `graphql:"__typename"` Login githubv4.String AvatarUrl githubv4.String + User struct { + Name *githubv4.String + Email githubv4.String + } `graphql:"... on User"` + Organization struct { + Name *githubv4.String + Email *githubv4.String + } `graphql:"... on Organization"` } type actorEvent struct { @@ -152,5 +161,10 @@ type commentEditQuery struct { } type userQuery struct { - User actor `graphql:"user(login: $login)"` + User struct { + Login githubv4.String + AvatarUrl githubv4.String + Name *githubv4.String + Email githubv4.String + } `graphql:"user(login: $login)"` } |