Method: projects.locations.repositories.pullRequests.pullRequestComments.list

Lists pull request comments.

HTTP request


The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The pull request in which to list pull request comments. Format: projects/{project_number}/locations/{locationId}/repositories/{repositoryId}/pullRequests/{pull_request_id}

Query parameters

Parameters
pageSize

integer

Optional. Requested page size. If unspecified, at most 100 pull request comments will be returned. The maximum value is 100; values above 100 will be coerced to 100.

pageToken

string

Optional. A token identifying a page of results the server should return.

Request body

The request body must be empty.

Response body

The response to list pull request comments.

If successful, the response body contains data with the following structure:

JSON representation
{
  "pullRequestComments": [
    {
      object (PullRequestComment)
    }
  ],
  "nextPageToken": string
}
Fields
pullRequestComments[]

object (PullRequestComment)

The list of pull request comments.

nextPageToken

string

A token to set as pageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

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 parent resource:

  • securesourcemanager.prcomments.list

For more information, see the IAM documentation.