aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/import_query.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-10-06 11:55:16 +0200
committerMichael Muré <batolettre@gmail.com>2018-10-06 11:55:16 +0200
commit64133ee5ba4b03e2f7f2f2161b1d551a97bd0d80 (patch)
tree9459d5c83f38441985c003a1a306783c47ddfaf8 /bridge/github/import_query.go
parent558e149b2524864beff3912f44fdb887edeb7ac5 (diff)
downloadgit-bug-64133ee5ba4b03e2f7f2f2161b1d551a97bd0d80.tar.gz
github: deal with the deleted user case where github return a null actor
Diffstat (limited to 'bridge/github/import_query.go')
-rw-r--r--bridge/github/import_query.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/bridge/github/import_query.go b/bridge/github/import_query.go
index 89eeb553..e1dcff64 100644
--- a/bridge/github/import_query.go
+++ b/bridge/github/import_query.go
@@ -17,13 +17,13 @@ type actor struct {
type actorEvent struct {
Id githubv4.ID
CreatedAt githubv4.DateTime
- Actor actor
+ Actor *actor
}
type authorEvent struct {
Id githubv4.ID
CreatedAt githubv4.DateTime
- Author actor
+ Author *actor
}
type userContentEdit struct {
@@ -150,3 +150,7 @@ type commentEditQuery struct {
} `graphql:"issues(first: $issueFirst, after: $issueAfter, orderBy: {field: CREATED_AT, direction: ASC})"`
} `graphql:"repository(owner: $owner, name: $name)"`
}
+
+type userQuery struct {
+ User actor `graphql:"user(login: $login)"`
+}