diff options
author | Alexander Scharinger <rng.dynamics@gmail.com> | 2021-01-09 23:02:53 +0100 |
---|---|---|
committer | Alexander Scharinger <rng.dynamics@gmail.com> | 2021-01-24 21:31:27 +0100 |
commit | 955c6fa7d461841f2e1a0e61fd2741dab093dda5 (patch) | |
tree | 3bf1acd28238dc799eed4935478749a303e393e0 /bridge/github/import_query.go | |
parent | 799341baf2e37472ba514e2ce0d17729df08247c (diff) | |
download | git-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.go | 12 |
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)"` +} |