Method: projects.locations.repositories.pullRequests.create

Creates a pull request.

HTTP request


The URLs use gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The repository that the pull request is created from. Format: projects/{project_number}/locations/{locationId}/repositories/{repositoryId}

Request body

The request body contains an instance of PullRequest.

Response body

If successful, the response body contains a newly created instance of Operation.

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.pullRequests.create

For more information, see the IAM documentation.