-
Notifications
You must be signed in to change notification settings - Fork 0
Add CreateSubIssue function to combine issue creation and sub-issue linking #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
This PR implements a new
create_sub_issue
tool that streamlines the workflow for creating issues that need to be linked as sub-issues to a parent issue.What was added
New
CreateSubIssue
functionpkg/github/issues.go
create_sub_issue
Parameters
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_issue
callscreate_issue
parameters exactly, just addsparent_issue_number
Fixes #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.