aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/import_query.go
diff options
context:
space:
mode:
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)"`
+}