Add CreateSubIssue function to combine issue creation and sub-issue linking#5
Merged
JaclynCodes merged 1 commit intomainfrom Aug 26, 2025
Merged
Add CreateSubIssue function to combine issue creation and sub-issue linking#5JaclynCodes merged 1 commit intomainfrom
JaclynCodes merged 1 commit intomainfrom
Conversation
Copilot
AI
changed the title
[WIP] Create Sub Issue
Add CreateSubIssue function to combine issue creation and sub-issue linking
Aug 26, 2025
JaclynCodes
added a commit
that referenced
this pull request
Aug 27, 2025
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 a new
create_sub_issuetool that streamlines the workflow for creating issues that need to be linked as sub-issues to a parent issue.What was added
New
CreateSubIssuefunctionpkg/github/issues.gocreate_sub_issueParameters
The function accepts all standard issue creation parameters plus a required
parent_issue_number:owner(required): Repository ownerrepo(required): Repository nameparent_issue_number(required): The number of the parent issuetitle(required): Issue titlebody(optional): Issue body contentassignees(optional): Usernames to assign to this issuelabels(optional): Labels to apply to this issuemilestone(optional): Milestone numbertype(optional): Type of this issueImplementation details
The function performs two sequential operations:
Error handling provides clear distinction between issue creation failures and sub-issue addition failures, helping users understand which step failed.
Testing
Added comprehensive test coverage with 5 scenarios:
Documentation
Updated README.md to include the new tool with complete parameter documentation.
Benefits
create_issue+add_sub_issuecallscreate_issueparameters exactly, just addsparent_issue_numberFixes #2.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.