- Notifications
You must be signed in to change notification settings - Fork3k
projects: add server instructions#1352
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Closed
tmelliottjr wants to merge1 commit intotmelliottjr/update-projects-toolsfromtmelliottjr/update-projects-descriptions
+332 −293
Closed
Changes fromall commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -62,6 +62,75 @@ Check 'list_issue_types' first for organizations to use proper issue types. Use | ||
| return `## Discussions | ||
| Use 'list_discussion_categories' to understand available categories before creating discussions. Filter by category for better organization.` | ||
| case "projects": | ||
| return `## Projects | ||
| Workflow: 1) list_project_fields (get field IDs), 2) list_project_items (with pagination), 3) optional updates. | ||
| Field usage: | ||
| - Call list_project_fields first to understand available fields and get IDs/types before filtering. | ||
| - Use EXACT returned field names (case-insensitive match). Don't invent names or IDs. | ||
| - Iteration synonyms (sprint/cycle) only if that field exists; map to the actual name (e.g. sprint:@current). | ||
| - Only include filters for fields that exist and are relevant. | ||
| Pagination (mandatory): | ||
| - Loop while pageInfo.hasNextPage=true using after=pageInfo.nextCursor. | ||
| - Keep query, fields, per_page IDENTICAL on every page. | ||
| - Use before=pageInfo.prevCursor only when explicitly navigating to a previous page. | ||
| Counting rules: | ||
| - Count items array length after full pagination. | ||
| - Never count field objects, content, or nested arrays as separate items. | ||
| Summary vs list: | ||
| - Summaries ONLY if user uses verbs: analyze | summarize | summary | report | overview | insights. | ||
| - Listing verbs (list/show/get/fetch/display/enumerate) → enumerate + total. | ||
| Self-check before returning: | ||
| - Paginated fully | ||
| - Correct IDs used | ||
| - Field names valid | ||
| - Summary only if requested. | ||
| Return COMPLETE data or state what's missing (e.g. pages skipped). | ||
| list_project_items query rules: | ||
tmelliottjr marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| Query string - For advanced filtering of project items using GitHub's project filtering syntax: | ||
| MUST reflect user intent; strongly prefer explicit content type if narrowed: | ||
| - "open issues" → state:open is:issue | ||
| - "merged PRs" → state:merged is:pr | ||
| - "items updated this week" → updated:>@today-7d (omit type only if mixed desired) | ||
| - "list all P1 priority items" → priority:p1 (omit state if user wants all, omit type if user specifies "items") | ||
| - "list all open P2 issues" → is:issue state:open priority:p2 (include state if user wants open or closed, include type if user specifies "issues" or "PRs") | ||
| - "all open issues I'm working on" → is:issue state:open assignee:@me | ||
| Query Construction Heuristics: | ||
| a. Extract type nouns: issues → is:issue | PRs, Pulls, or Pull Requests → is:pr | tasks/tickets → is:issue (ask if ambiguity) | ||
| b. Map temporal phrases: "this week" → updated:>@today-7d | ||
| c. Map negations: "excluding wontfix" → -label:wontfix | ||
| d. Map priority adjectives: "high/sev1/p1" → priority:high OR priority:p1 (choose based on field presence) | ||
| e. When filtering by label, always use wildcard matching to account for cross-repository differences or emojis: (e.g. "bug 🐛" → label:*bug*) | ||
| f. When filtering by milestone, always use wildcard matching to account for cross-repository differences: (e.g. "v1.0" → milestone:*v1.0*) | ||
| Syntax Essentials (items): | ||
| AND: space-separated. (label:bug priority:high). | ||
| OR: comma inside one qualifier (label:bug,critical). | ||
| NOT: leading '-' (-label:wontfix). | ||
| Hyphenate multi-word field names. (team-name:"Backend Team", story-points:>5). | ||
| Quote multi-word values. (status:"In Review" team-name:"Backend Team"). | ||
| Ranges: points:1..3, updated:<@today-30d. | ||
| Wildcards: title:*crash*, label:bug*. | ||
| Assigned to User: assignee:@me | assignee:username | no:assignee | ||
| Common Qualifier Glossary (items): | ||
| is:issue | is:pr | state:open|closed|merged | assignee:@me|username | label:NAME | status:VALUE | | ||
| priority:p1|high | sprint-name:@current | team-name:"Backend Team" | parent-issue:"org/repo#123" | | ||
| updated:>@today-7d | title:*text* | -label:wontfix | label:bug,critical | no:assignee | has:label | ||
| Never: | ||
| - Infer field IDs; fetch via list_project_fields. | ||
| - Drop 'fields' param on subsequent pages if field values are needed.` | ||
| default: | ||
| return "" | ||
| } | ||
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
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.