Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] githubclient createIssue should support a parentIssue optional argument (in options). The created issue should be added as subissue to the parentIssue if available.
Add parentIssue support to GitHubClient.createIssue for sub-issue functionality
Aug 19, 2025
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Author
Added GenAIScript sample |
pelikhan
approved these changes
Aug 19, 2025
…nd epicDescription
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements support for creating GitHub sub-issues by adding an optional
parentIssueparameter to theGitHubClient.createIssue()method. When provided, the created issue is automatically linked as a sub-issue to the specified parent issue.Problem
The GitHub client's
createIssuemethod did not support creating sub-issues (child issues linked to a parent issue), which is a common workflow pattern for breaking down large features or epics into smaller, manageable tasks.Solution
Enhanced the
createIssuemethod to accept aparentIssueoption that:createTaskListItemmutationUsage
Changes Made
parentIssue?: number | stringtoGitHubIssueCreateOptionscreateIssueto extractparentIssueand call newaddSubIssuemethodaddSubIssuemethod using GitHub's task list APIgithub-sub-issues.genai.mtsdemonstrating practical usageImplementation Details
The implementation is minimal and non-breaking:
parentIssueis extracted before REST API call to avoid parameter conflictsSample Script
The included GenAIScript sample (
samples/sample/genaisrc/github-sub-issues.genai.mts) demonstrates:parentIssueparameter to establish relationshipsThis provides developers with a complete example of how to leverage sub-issues for organizing complex projects and breaking down large features into manageable tasks.
Testing
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.