Skip to content

feat(to-issues): attach child issues as native sub-issues via API#66

Closed
fuleinist wants to merge 1 commit intomattpocock:mainfrom
fuleinist:feat/to-issues-sub-issues
Closed

feat(to-issues): attach child issues as native sub-issues via API#66
fuleinist wants to merge 1 commit intomattpocock:mainfrom
fuleinist:feat/to-issues-sub-issues

Conversation

@fuleinist
Copy link
Copy Markdown

After creating each child issue with gh issue create, this PR adds a step to also attach it as a native GitHub sub-issue via the sub-issues REST API.\n\nThis makes child issues appear in the parent's sub-issue list and progress indicator in the GitHub UI, not just as '#<parent-issue-number>' text references in the issue body.\n\nFixes #47.

After creating each child issue with gh issue create, also call the
GitHub sub-issues API to attach it to the parent. This makes children
appear in the parent's sub-issue list and progress indicator, not just
as '#<parent-issue-number>' text references in the body.

Fixes mattpocock#47.
@pranjal6657
Copy link
Copy Markdown

Add native GitHub sub-issue linking

What this PR does

After creating child issues using gh issue create, this PR adds an additional step to attach them as native sub-issues using GitHub's REST API.

Why this is needed

Previously, child issues were only referenced using #<issue-number> in the issue body, which does not register them as actual sub-issues in GitHub.

This change ensures:

  • Child issues appear in the parent issue’s sub-issue list
  • Progress indicators work correctly in GitHub UI

Implementation

  • Added API call to:
    POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues
  • Automatically links child issue to parent

Fixes

Closes #47

@mattpocock mattpocock closed this Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants