Skip to content

Need to set "auto paginate" true #53

Open
@tkawa

Description

For example, this pull_request_patches method calls Octokit::Client#pull_request_files inside.
https://github.com/packsaddle/ruby-saddler-reporter-github/blob/master/lib/saddler/reporter/github/client.rb#L68
Octokit::Client#pull_request_files and many other methods use paginate, that manages a pagination depending on Octokit.auto_paginate.
https://github.com/octokit/octokit.rb#pagination

So you need Octokit.auto_paginate = true (in the code first) or setting env var OCTOKIT_AUTO_PAGINATE=true (should be documented as users set this according their preference).

Activity

sanemat

sanemat commented on Jun 23, 2017

@sanemat
Member

I think Octokit.auto_paginate = true is better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Need to set "auto paginate" true · Issue #53 · packsaddle/ruby-saddler-reporter-github