edgurgel / tentacat

Simple Elixir wrapper for the GitHub API

Home Page:https://hexdocs.pm/tentacat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question regarding dealing with automatically paging queries...

redvers opened this issue · comments

When I call a function like Tentacat.Issues.list it automatically blocks until all the pages are downloaded. This is awesome - except if possible I'd like some kind of indication as to how it's going.

If there isn't a way to increase the verbosity - could we maybe get an optional callback that's called every time a HTTP request is made so we can instrument something.

Thanks,

Red

Hi @redvers , have you checked the pagination options and see if one of those satisfy your requirements? https://hexdocs.pm/tentacat/Tentacat.html#get/4

Hey there! Im trying to set pagination: :none to the filter function from the Pull module, but I I can't make this work... is it not available at that level?

Tentacat.Pulls.filter(client(), "myrepo", repository, %{
        "state" => "close",
        "per_page" => 1,
        "page" => 1,
        "pagination" => "none"
      })

Thanks