-
Notifications
You must be signed in to change notification settings - Fork 708
Add missing milestone to create_issue
#88
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.
Pull Request Overview
This PR adds support for a missing milestone parameter in the create_issue functionality to fix an issue with milestone handling. Key changes include:
- Adding "milestone" to the tool's input schema in tests.
- Updating the mock issue to include a milestone value.
- Incorporating an optional milestone parameter in the issue creation logic.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
pkg/github/issues_test.go | Adds assertions and test cases for milestone. |
pkg/github/issues.go | Integrates optional milestone parameter into issue creation. |
Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more
pkg/github/issues.go
Outdated
@@ -261,6 +261,9 @@ func createIssue(client *github.Client, t translations.TranslationHelperFunc) (t | |||
}, | |||
), | |||
), | |||
mcp.WithNumber("milestone", | |||
mcp.Description("New milestone number"), |
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.
Is it new or can it be an existing milestone number that attaches the new issue to the existing milestone?
b5f7301
to
254be46
Compare
254be46
to
135754a
Compare
Description
Fixes #78