GET
github_pulls_get_diff.py
Requires
repo, read:user.Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get a pull request’s whole change as a unified diff, in one call. The same endpoint as pulls_get asked for a different representation. Use it to read a change end to end; use pulls_list_files when the change is large enough to need paging, since this has no way to ask for less.
from charter.packs import github
result = await github.pulls_get_diff.ainvoke({"owner": ..., "repo": ..., "pullNumber": ...})
repo, read:user.| Field | Type | Description |
|---|---|---|
owner * | string | The account owner of the repository. The name is not case sensitive. |
repo * | string | The name of the repository without the .git extension. The name is not case sensitive. |
pullNumber * | integer | The number that identifies the pull request. |
Was this page helpful?