Skip to content

Commit 5186f71

Browse files
Copilotalexr00
andauthored
Add user-friendly descriptions for PR tools (#8514)
* Initial plan * Initial plan for fixing PR tool descriptions Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com> * Add user-friendly descriptions for PR tools Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent bfbc1ef commit 5186f71

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3782,6 +3782,7 @@
37823782
],
37833783
"toolReferenceName": "issue_fetch",
37843784
"displayName": "%languageModelTools.github-pull-request_issue_fetch.displayName%",
3785+
"userDescription": "%languageModelTools.github-pull-request_issue_fetch.description%",
37853786
"modelDescription": "Get a GitHub issue/PR's details as a JSON object.",
37863787
"icon": "$(info)",
37873788
"canBeReferencedInPrompt": true,
@@ -3825,7 +3826,8 @@
38253826
],
38263827
"toolReferenceName": "labels_fetch",
38273828
"displayName": "%languageModelTools.github-pull-request_labels_fetch.displayName%",
3828-
"modelDescription": "Fetch all labels from a GitHub repository. Returns the label names, colors, and descriptions.",
3829+
"userDescription": "%languageModelTools.github-pull-request_labels_fetch.description%",
3830+
"modelDescription": "Fetch all labels from a GitHub repository. Returns the label names, colors, and descriptions as a JSON object.",
38293831
"icon": "$(tag)",
38303832
"canBeReferencedInPrompt": true,
38313833
"inputSchema": {
@@ -3861,6 +3863,7 @@
38613863
],
38623864
"toolReferenceName": "notification_fetch",
38633865
"displayName": "%languageModelTools.github-pull-request_notification_fetch.displayName%",
3866+
"userDescription": "%languageModelTools.github-pull-request_notification_fetch.description%",
38643867
"modelDescription": "Get a GitHub notification's details as a JSON object.",
38653868
"icon": "$(info)",
38663869
"canBeReferencedInPrompt": true,
@@ -3887,6 +3890,7 @@
38873890
],
38883891
"toolReferenceName": "doSearch",
38893892
"displayName": "%languageModelTools.github-pull-request_doSearch.displayName%",
3893+
"userDescription": "%languageModelTools.github-pull-request_doSearch.description%",
38903894
"modelDescription": "Execute a GitHub search given a well formed GitHub search query. Make sure to form a good search query first",
38913895
"icon": "$(search)",
38923896
"canBeReferencedInPrompt": true,

package.nls.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,13 +421,17 @@
421421
"welcome.issues.github.noRepo.contents": "No git repositories found",
422422
"welcome.github.activePullRequest.contents": "Loading...",
423423
"languageModelTools.github-pull-request_issue_fetch.displayName": "Get a GitHub Issue or pull request",
424+
"languageModelTools.github-pull-request_issue_fetch.description": "Get the details of a GitHub issue or pull request.",
424425
"languageModelTools.github-pull-request_issue_summarize.displayName": "Summarize a GitHub Issue or pull request",
425426
"languageModelTools.github-pull-request_labels_fetch.displayName": "Fetch labels from a GitHub repository",
427+
"languageModelTools.github-pull-request_labels_fetch.description": "Fetch all labels from a GitHub repository, including their names, colors, and descriptions.",
426428
"languageModelTools.github-pull-request_notification_fetch.displayName": "Get a GitHub Notification",
429+
"languageModelTools.github-pull-request_notification_fetch.description": "Get the details of a GitHub notification.",
427430
"languageModelTools.github-pull-request_notification_summarize.displayName": "Summarize a GitHub Notification",
428431
"languageModelTools.github-pull-request_suggest-fix.displayName": "Suggest a Fix for a GitHub Issue",
429432
"languageModelTools.github-pull-request_formSearchQuery.displayName": "Convert natural language to a GitHub search query",
430433
"languageModelTools.github-pull-request_doSearch.displayName": "Execute a GitHub search",
434+
"languageModelTools.github-pull-request_doSearch.description": "Search for GitHub issues and pull requests.",
431435
"languageModelTools.github-pull-request_renderIssues.displayName": "Render issue items in a markdown table",
432436
"languageModelTools.github-pull-request_activePullRequest.displayName": "Active Pull Request",
433437
"languageModelTools.github-pull-request_activePullRequest.description": "Get information about the active GitHub pull request. This information includes: comments, files changed, pull request title + description, pull request state, and pull request status checks/CI.",

0 commit comments

Comments
 (0)