-
Notifications
You must be signed in to change notification settings - Fork 3k
projects: add server instructions #1393
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
projects: add server instructions #1393
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 comprehensive server instructions for the GitHub Projects toolset to guide proper usage of project-related APIs. The new instructions cover workflow patterns, field handling, pagination requirements, query construction syntax, and common pitfalls to avoid.
Key Changes
- Added detailed "projects" case to the
getToolsetInstructionsfunction with multi-section guidance - Documented query construction heuristics and syntax essentials for filtering project items
- Provided pagination best practices and field validation requirements
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
| Return COMPLETE data or state what's missing (e.g. pages skipped). | ||
| list_project_items query rules: |
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.
👋 this seems like it should live in the query param description in the list_project_items tool as it's specifically about that parameter in that tool?
3c72fef
into
tmelliottjr/update-projects-tools
* pagination, serialization updates * projects: add server instructions (#1393) * add server instructions * Update instructions.go --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This pull request adds comprehensive instructions for handling GitHub Projects to the
pkg/github/instructions.gofile. The new guidance covers best practices for listing, filtering, paginating, and summarizing project items, ensuring correct field usage and query construction. The changes are focused on improving clarity and accuracy when interacting with project-related APIs.Stacked on top of: #1390
These instructions help improve the quality of usage for projects related tools. Most specifically, those calls for listing project items. Some example query improvements below.
Example 1
Before:
updated:>2025-11-04After:
is:issue updated:>@today-7d priority:P0,P1,P2Example 2
Before:
assignee:rileyUltimately, no results were ever returned.
After:
Attempt 1:
is:issue assignee:rileyAttempt 2 (self-corrected):
is:issue assignee:*riley*Example 3
Before:
assignee:@me is:openAfter:
is:issue state:open priority:p1 assignee:@me