-
Notifications
You must be signed in to change notification settings - Fork 0
listOpenIssues does not paginate, missing issues beyond first page #88
Copy link
Copy link
Open
Description
Problem
github.ts's listOpenIssues function fetches only the first page of issues from GitHub's API (default 10 items). If the repository has more than 10 open issues, Seedling will not see the full backlog and may ignore issues that are not in the first page. This is a bug that can cause important issues to be overlooked indefinitely.
What to build
Implement pagination in listOpenIssues:
- Use the
per_pageparameter (max 100) to reduce the number of pages. - Follow the
Linkheader to detect if there is arel="next"and fetch subsequent pages until all issues are retrieved. - Combine results from all pages into a single array before returning.
Alternatively, if the total count is small, simply increase per_page to 100 and assume that's sufficient.
Done when
listOpenIssuesreturns all open issues regardless of count (up to GitHub's limits).- Seedling correctly processes issues beyond the first 10.
- The function still respects rate limits and uses
withRetryas before.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels