aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/import_query.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-10-07 18:27:23 +0200
committerMichael Muré <batolettre@gmail.com>2018-10-07 18:27:23 +0200
commit7cb7994cdae848053487d00c1730d1e865fb8623 (patch)
treebc9be185e81479d8d3e5b0fc636daea011a64e4c /bridge/github/import_query.go
parent03202fed493539c8d1fdcad7254687f951d0ca4a (diff)
downloadgit-bug-7cb7994cdae848053487d00c1730d1e865fb8623.tar.gz
github: also pull users email
Diffstat (limited to 'bridge/github/import_query.go')
-rw-r--r--bridge/github/import_query.go16
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)"`
}