Skip to content

Conversation

@tmelliottjr
Copy link
Contributor

@tmelliottjr tmelliottjr commented Nov 11, 2025

This pull request adds comprehensive instructions for handling GitHub Projects to the pkg/github/instructions.go file. 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

Show me the last week's activity in https://github.com/orgs/test-rg/projects/1234/views/14 for all p2 or higher issues.

Before:

updated:>2025-11-04

After:

is:issue updated:>@today-7d priority:P0,P1,P2

Example 2

Show me all issues that riley is assigned to in https://github.com/orgs/test-org/projects/123456/views/16, please show me the progress of the sub-issues as well.

Before:

assignee:riley

Ultimately, no results were ever returned.

After:

Attempt 1:

is:issue assignee:riley

Attempt 2 (self-corrected):

is:issue assignee:*riley*

Example 3

Show me all open p1 issues that I've worked on in https://github.com/orgs/test-org/projects/123456/views/5

Before:

assignee:@me is:open

After:

is:issue state:open priority:p1 assignee:@me

@tmelliottjr tmelliottjr requested a review from a team as a code owner November 11, 2025 15:46
Copilot AI review requested due to automatic review settings November 11, 2025 15:46
Copilot finished reviewing on behalf of tmelliottjr November 11, 2025 15:52
Copy link
Contributor

Copilot AI left a 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 getToolsetInstructions function 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:
Copy link
Contributor

@tommaso-moro tommaso-moro Nov 12, 2025

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?

@JoannaaKL JoannaaKL merged commit 3c72fef into tmelliottjr/update-projects-tools Nov 12, 2025
15 checks passed
@JoannaaKL JoannaaKL deleted the tmelliottjr/projects-server-instructions branch November 12, 2025 11:09
kerobbi pushed a commit that referenced this pull request Nov 14, 2025
* pagination, serialization updates

* projects: add server instructions (#1393)

* add server instructions

* Update instructions.go

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants