mach10
mach10 copied to clipboard
pr-create: add --paginate flag to sub-issues API call
Summary
The gh api call in commands/pr-create.md that queries sub-issues does not include the --paginate flag. The GitHub sub-issues API is paginated with a default page size of 30 results. For parent issues with more than 30 sub-issues, the current command will silently return a truncated list.
Context
Found during review of PR #64. Classified as deferred because issues with 30+ sub-issues are extremely rare in practice, but the fix is trivial (--paginate flag).
Proposed Fix
Change:
gh api repos/$REPO/issues/<issue-number>/sub_issues --jq '.[].number'
To:
gh api --paginate repos/$REPO/issues/<issue-number>/sub_issues --jq '.[].number'
Implemented in PR #90.