Skip to content

Commit 4552ede

Browse files
committed
prompt updates
1 parent 5e5e80a commit 4552ede

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

pkg/github/projects.go

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,9 +1057,9 @@ func ManageProjectItemsPrompt(t translations.TranslationHelperFunc) (tool mcp.Pr
10571057
"**Understanding Project Items:**\n" +
10581058
"- Project items reference underlying content (issues or pull requests)\n" +
10591059
"- Project tools provide: project fields, item metadata, and basic content info\n" +
1060-
"- For detailed information about an issue or pull request (comments, events, etc.), use issue/PR specific tools\n" +
1060+
"- For detailed information about an issue or pull request (comments, reviews, etc.), use issue/PR specific tools\n" +
10611061
"- The 'content' field in project items includes: repository, issue/PR number, title, state\n" +
1062-
"- Use this info to fetch full details: **get_issue**, **list_comments**, **list_issue_events**\n\n" +
1062+
"- Use this info to fetch full details: **issue_read**, **pull_request_read**\n\n" +
10631063
"**Available Tools:**\n" +
10641064
"- **list_projects**: Discover available projects\n" +
10651065
"- **get_project**: Get detailed project information\n" +
@@ -1105,6 +1105,7 @@ func ManageProjectItemsPrompt(t translations.TranslationHelperFunc) (tool mcp.Pr
11051105
" - Filter by assignees: query=\"assignee:@me\"\n" +
11061106
" - Filter by status: query=\"status:In Progress\"\n" +
11071107
" - Filter by labels: query=\"label:bug\"\n" +
1108+
" - Combine filters: query=\"assignee:@me status:\"In Progress\" label:bug\"\n" +
11081109
" - Include specific fields: fields=[\"198354254\", \"198354255\"]\n\n" +
11091110
"**💡 Pro Tip:** Always specify the 'fields' parameter to get field values, not just titles!"),
11101111
},
@@ -1157,7 +1158,7 @@ func ManageProjectItemsPrompt(t translations.TranslationHelperFunc) (tool mcp.Pr
11571158
" owner=\"%s\"\n"+
11581159
" owner_type=\"%s\"\n"+
11591160
" project_number=123\n"+
1160-
" query=\"assignee:@me\"\n"+
1161+
" query=\"assignee:@me status:in progress\"\n"+
11611162
" fields=[\"198354254\", \"other_field_ids\"]\n\n\n"+
11621163
"**Step 4:** Update item status\n\n"+
11631164
"**update_project_item**\n"+
@@ -1181,22 +1182,25 @@ func ManageProjectItemsPrompt(t translations.TranslationHelperFunc) (tool mcp.Pr
11811182
"- content.number (the issue/PR number)\n" +
11821183
"- content_type (\"Issue\" or \"PullRequest\")\n\n" +
11831184
"**Then use these tools for details:**\n\n" +
1184-
"1. **Get full issue/PR details:**\n" +
1185-
" - **get_issue** owner=repo_owner repo=repo_name issue_number=123\n" +
1186-
" - Returns: full body, labels, assignees, milestone, etc.\n\n" +
1187-
"2. **Get recent comments:**\n" +
1188-
" - **list_comments** owner=repo_owner repo=repo_name issue_number=123\n" +
1189-
" - Add since parameter to filter recent comments\n\n" +
1190-
"3. **Get issue events:**\n" +
1191-
" - **list_issue_events** owner=repo_owner repo=repo_name issue_number=123\n" +
1192-
" - Shows timeline: assignments, label changes, status updates\n\n" +
1193-
"4. **For pull requests specifically:**\n" +
1194-
" - **get_pull_request** owner=repo_owner repo=repo_name pull_number=123\n" +
1195-
" - **list_pull_request_reviews** for review status\n\n" +
1185+
"**For issues:**\n" +
1186+
"- **issue_read** with method parameter:\n" +
1187+
" - method=\"get\" - Get issue details\n" +
1188+
" - method=\"get_comments\" - Get issue comments (supports pagination)\n" +
1189+
" - method=\"get_sub_issues\" - Get sub-issues (supports pagination)\n" +
1190+
" - method=\"get_labels\" - Get issue labels\n\n" +
1191+
"**For pull requests:**\n" +
1192+
"- **pull_request_read** with method parameter:\n" +
1193+
" - method=\"get\" - Get PR details\n" +
1194+
" - method=\"get_comments\" - Get PR comments (supports pagination)\n" +
1195+
" - method=\"get_review_comments\" - Get review comments on code (supports pagination)\n" +
1196+
" - method=\"get_reviews\" - Get PR reviews\n" +
1197+
" - method=\"get_status\" - Get build/check status\n" +
1198+
" - method=\"get_files\" - Get changed files (supports pagination)\n" +
1199+
" - method=\"get_diff\" - Get the full diff\n\n" +
11961200
"**💡 Example:** To check for blockers in comments:\n" +
11971201
"1. Get project items with query=\"assignee:@me is:open\"\n" +
1198-
"2. For each item, extract repository and issue number from content\n" +
1199-
"3. Use **list_comments** to get recent comments\n" +
1202+
"2. For each item, extract repository info and number from content\n" +
1203+
"3. Use **issue_read** method=\"get_comments\" or **pull_request_read** method=\"get_comments\"\n" +
12001204
"4. Search comments for keywords like \"blocked\", \"blocker\", \"waiting\""),
12011205
},
12021206
}

0 commit comments

Comments
 (0)