Skip to content

Commit 4657ec1

Browse files
authored
fix(changelog): added a cursor for the first request (#178)
Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com>
1 parent b9345c7 commit 4657ec1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmd/internal/github/graphql.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,9 +219,8 @@ func (c GQLClient) HistoryGraphQl(repo, branch, commitLimit string) ([]GQLCommit
219219
var err error
220220
var res GQLOutput
221221
for {
222-
cursorStr := ""
222+
cursorStr := "(first: 50)"
223223
if res.Data.Repository.Object.History.PageInfo.EndCursor != "" {
224-
// reduce to 50 as default 100 is too large now
225224
cursorStr = fmt.Sprintf(`(first: 50, after: "%s")`, res.Data.Repository.Object.History.PageInfo.EndCursor)
226225
}
227226
res, err = c.graphqlQuery(fmt.Sprintf(`

0 commit comments

Comments
 (0)