Skip to content

repo_get_pull_request_changes does not get the list of changes even when includeLineContent and includeDiffs are true #1237

@krid-583

Description

@krid-583

SUMMARY :
repo_get_pull_request_changes does not consistently return the actual line content or diff payload even when includeDiffs=true and includeLineContent=true are requested. In the observed case, the response only included change metadata such as the file path and change type, which is a bug.

TOOL NAME:
repo_get_pull_request_changes

RULES:

  • If the pull request contains changes where only new files are added, the tool should return the full file content and corresponding diff context, which doesn't happen.
  • If the pull request contains changes where files are removed completely, the tool should return the removed content and corresponding diff context. This is another erroneous case.

EVIDENCE:

FOR ADDITION:

Image

Result:

{
  "changeEntries": [
    {
      "changeTrackingId": 1,
      "changeId": 1,
      "item": {
        "objectId": "1F18844E82DD69E1C8A1AA74CE2003673AA3CE57",
        "path": "/Testfolder.md"
      },
      "changeType": 1
    },
    {
      "changeTrackingId": 2,
      "changeId": 2,
      "item": {
        "objectId": "1C95E516BB7AABDD2ECFED18789D6F91F5950B7B",
        "path": "/New Folder/Addition 1"
      },
      "changeType": 1
    },
    {
      "changeTrackingId": 3,
      "changeId": 3,
      "item": {
        "objectId": "960E592192875A2FB5E6E79220275A2955885FA3",
        "path": "/New Folder/Addition 2"
      },
      "changeType": 1
    }
  ]
}

Actual PR:

Image

FOR DELETION :

Image Image

Metadata

Metadata

Assignees

Labels

Needs Review 👓needs review by the product teamRepos 📁issue in the repos area

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions