- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- FileDiff
- Action
Lists a pull request's file diffs.
HTTP request
The URLs use gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. The pull request to list file diffs for. Format: |
Query parameters
Parameters | |
---|---|
pageSize |
Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. |
pageToken |
Optional. A token identifying a page of results the server should return. |
Request body
The request body must be empty.
Response body
ListPullRequestFileDiffsResponse is the response containing file diffs returned from pullRequests.listFileDiffs.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"fileDiffs": [
{
object ( |
Fields | |
---|---|
fileDiffs[] |
The list of pull request file diffs. |
nextPageToken |
A token identifying a page of results the server should return. |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the name
resource:
securesourcemanager.pullRequests.listFileDiffs
For more information, see the IAM documentation.
FileDiff
Metadata of a FileDiff. FileDiff represents a single file diff in a pull request.
JSON representation |
---|
{
"name": string,
"action": enum ( |
Fields | |
---|---|
name |
Output only. The name of the file. |
action |
Output only. The action taken on the file (eg. added, modified, deleted). |
sha |
Output only. The commit pointing to the file changes. |
patch |
Output only. The git patch containing the file changes. |
Action
Action taken on the file.
Enums | |
---|---|
ACTION_UNSPECIFIED |
Unspecified. |
ADDED |
The file was added. |
MODIFIED |
The file was modified. |
DELETED |
The file was deleted. |