-
Couldn't load subscription status.
- Fork 2.9k
projects: update fields and prompt #1292
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 pull request modernizes the GitHub Projects V2 integration by replacing the custom MinimalProjectItem type with the richer projectV2Item structure and significantly enhancing the project management prompt with comprehensive workflows and guidance.
Key changes:
- Removed the
MinimalProjectItemtype and its conversion function, using the fullprojectV2Itemstructure instead to provide more detailed content information - Added
projectV2ItemContentstruct with repository, issue/PR details, and state information to enable complete workflows - Expanded the
ManageProjectItemsprompt with detailed workflows, examples, and guidance for cross-tool integration
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 16 comments.
| File | Description |
|---|---|
| pkg/github/projects.go | Updated tool descriptions to use consistent JSON example format; removed conversions to MinimalProjectItem; expanded projectV2Item struct with new fields including nested content; enhanced ManageProjectItems prompt with comprehensive workflows and multi-tool guidance |
| pkg/github/minimal_types.go | Removed MinimalProjectItem type definition and convertToMinimalProjectItem helper function |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Towards: https://github.com/github/memex/issues/20735
This pull request makes significant changes to how GitHub Project items are represented and handled in the codebase. The main updates involve removing the custom
MinimalProjectItemtype in favor of using the "full"projectV2Itemstructure which contained the same attributes, updating the project item schema to include richer content details, and improving the user prompt for managing GitHub Projects V2 with more comprehensive guidance and workflow examples.The changes to the structs was necessary to ensure we have enough information to support complete workflows with projects, such as identifying the repository owner/name for additional requests.