aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/iterator.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-11-11 23:10:01 +0100
committerGitHub <noreply@github.com>2019-11-11 23:10:01 +0100
commitfdbff4dba7d6e56edfed1030e6fede2a7a35b507 (patch)
tree9b97b8763fbffac978cb3fa9b4a157c7acc3a795 /bridge/github/iterator.go
parent2367029124afb363bb42b9089f43e62bc8e04ae3 (diff)
parente3e37fd79e46980f3eb95410bba195901e9c25bf (diff)
downloadgit-bug-fdbff4dba7d6e56edfed1030e6fede2a7a35b507.tar.gz
Merge pull request #249 from MichaelMure/iterator-fix
bridge/github: fix iterator regression
Diffstat (limited to 'bridge/github/iterator.go')
-rw-r--r--bridge/github/iterator.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/bridge/github/iterator.go b/bridge/github/iterator.go
index f8e41993..d1d7900f 100644
--- a/bridge/github/iterator.go
+++ b/bridge/github/iterator.go
@@ -191,7 +191,6 @@ func (i *iterator) NextIssue() bool {
// if we have more issues, query them
i.timeline.variables["timelineAfter"] = (*githubv4.String)(nil)
- i.timeline.variables["issueAfter"] = issues.PageInfo.EndCursor
i.timeline.index = -1
timelineEndCursor := issues.Nodes[0].TimelineItems.PageInfo.EndCursor
@@ -199,7 +198,10 @@ func (i *iterator) NextIssue() bool {
i.timeline.lastEndCursor = timelineEndCursor
// query issue block
- return i.queryIssue()
+ nextIssue := i.queryIssue()
+ i.timeline.variables["issueAfter"] = issues.PageInfo.EndCursor
+
+ return nextIssue
}
// IssueValue return the actual issue value