-
Notifications
You must be signed in to change notification settings - Fork 360
Closed
Labels
Needs Review 👓needs review by the product teamneeds review by the product teamRepos 📁issue in the repos areaissue in the repos area
Description
For example:
My repository is in the msazure/MCAS project, however the LLM often uses the One project (probably due to it being a very common one)
I think that adding the project name to the response would solve this.
azure-devops-mcp/src/tools/repositories.ts
Lines 116 to 134 in 20deed7
| function trimPullRequest(pr: GitPullRequest, includeDescription = false) { | |
| return { | |
| pullRequestId: pr.pullRequestId, | |
| codeReviewId: pr.codeReviewId, | |
| repository: pr.repository?.name, | |
| status: pr.status, | |
| createdBy: { | |
| displayName: pr.createdBy?.displayName, | |
| uniqueName: pr.createdBy?.uniqueName, | |
| }, | |
| creationDate: pr.creationDate, | |
| closedDate: pr.closedDate, | |
| title: pr.title, | |
| ...(includeDescription ? { description: pr.description ?? "" } : {}), | |
| isDraft: pr.isDraft, | |
| sourceRefName: pr.sourceRefName, | |
| targetRefName: pr.targetRefName, | |
| }; | |
| } |
adding
function trimPullRequest(pr: GitPullRequest, includeDescription = false) {
return {
pullRequestId: pr.pullRequestId,
+ project: pr.repository?.project?.name,
codeReviewId: pr.codeReviewId,
repository: pr.repository?.name,Metadata
Metadata
Assignees
Labels
Needs Review 👓needs review by the product teamneeds review by the product teamRepos 📁issue in the repos areaissue in the repos area