jlord / offline-issues

:grey_exclamation: :signal_strength: Get your GitHub Issues to read offline later. Mmm.
Other
640 stars 68 forks source link

GitHub 'issues/.../comments' API call returns only 30 comments in one go #50

Open gozhev opened 6 years ago

gozhev commented 6 years ago

I have noticed that offline-issues saves only first 30 comments from an issue. For example, the following call $ offline-issues fritz-smh/yi-hack#118 only saves comments until this one.

I have changed getComments function so that it sequentially requests comments and updates '?since=' parameter to the timestamp of the last fetched comment.