v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-133566112.5 KB
projects

Creates a pull request.

post/v1/{+parent}/pullRequests

Path parameters

parentstring required

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

Request body

updateTimestring google-datetime

Output only. Last updated timestamp.

titlestring

Required. The pull request title.

namestring

Output only. Identifier. A unique identifier for a PullRequest. The number appended at the end is generated by the server. Format: projects/{project}/locations/{location}/repositories/{repository}/pullRequests/{pull_request_id}

bodystring

Optional. The pull request body. Provides a detailed description of the changes.

createTimestring google-datetime

Output only. Creation timestamp.

closeTimestring google-datetime

Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened.

state'STATE_UNSPECIFIED' | 'OPEN' | 'CLOSED' | 'MERGED'

Output only. State of the pull request (open, closed or merged).

Response

Successful response