projects: add server instructions #1393
Merged
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 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