mach10 icon indicating copy to clipboard operation
mach10 copied to clipboard

pr-create: add --paginate flag to sub-issues API call

Open LeanAndMean opened this issue 7 months ago • 1 comments

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'

LeanAndMean avatar Apr 06 '26 22:04 LeanAndMean

Implemented in PR #90.

LeanAndMean avatar Apr 09 '26 16:04 LeanAndMean