aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/import_query.go
diff options
context:
space:
mode:
authorAlexander Scharinger <rng.dynamics@gmail.com>2021-01-09 23:02:53 +0100
committerAlexander Scharinger <rng.dynamics@gmail.com>2021-01-24 21:31:27 +0100
commit955c6fa7d461841f2e1a0e61fd2741dab093dda5 (patch)
tree3bf1acd28238dc799eed4935478749a303e393e0 /bridge/github/import_query.go
parent799341baf2e37472ba514e2ce0d17729df08247c (diff)
downloadgit-bug-955c6fa7d461841f2e1a0e61fd2741dab093dda5.tar.gz
Add GraphQL github timeline query and iterator
Diffstat (limited to 'bridge/github/import_query.go')
-rw-r--r--bridge/github/import_query.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/bridge/github/import_query.go b/bridge/github/import_query.go
index f159882e..38cdc444 100644
--- a/bridge/github/import_query.go
+++ b/bridge/github/import_query.go
@@ -233,3 +233,15 @@ type issueEditQuery_A struct {
} `graphql:"... on Issue"`
} `graphql:"node(id: $gqlNodeId)"`
}
+
+type timelineQuery struct {
+ Node struct {
+ Typename githubv4.String `graphql:"__typename"`
+ Issue struct {
+ TimelineItems struct {
+ Nodes []timelineItem
+ PageInfo pageInfo
+ } `graphql:"timelineItems(first: $timelineFirst, after: $timelineAfter)"`
+ } `graphql:"... on Issue"`
+ } `graphql:"node(id: $gqlNodeId)"`
+}