Skip to content

Commit ca63664

Browse files
authored
fix(release): reduce a size of the response (#171)
Signed-off-by: Lukasz Dziedziak <lukidzi@gmail.com>
1 parent cc4e8be commit ca63664

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cmd/internal/github/graphql.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ func (c GQLClient) HistoryGraphQl(repo, branch, commitLimit string) ([]GQLCommit
221221
for {
222222
cursorStr := ""
223223
if res.Data.Repository.Object.History.PageInfo.EndCursor != "" {
224-
cursorStr = fmt.Sprintf(`(after: "%s")`, res.Data.Repository.Object.History.PageInfo.EndCursor)
224+
// reduce to 50 as default 100 is too large now
225+
cursorStr = fmt.Sprintf(`(first: 50, after: "%s")`, res.Data.Repository.Object.History.PageInfo.EndCursor)
225226
}
226227
res, err = c.graphqlQuery(fmt.Sprintf(`
227228
query($name: String!, $owner: String!, $branch: String!) {

0 commit comments

Comments
 (0)