# Class PullRequest (0.6.0)

0.6.0 (latest) 0.5.0 0.4.0 0.3.0 0.2.0 0.1.17

    PullRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Metadata of a PullRequest. PullRequest is the request
from a user to merge a branch (head) into another branch (base).

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` 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}` |
| `title` | `str` Required. The pull request title. |
| `body` | `str` Optional. The pull request body. Provides a detailed description of the changes. |
| `base` | `https://docs.cloud.google.com/python/docs/reference/securesourcemanager/latest/google.cloud.securesourcemanager_v1.types.PullRequest.Branch` Required. The branch to merge changes in. |
| `head` | `https://docs.cloud.google.com/python/docs/reference/securesourcemanager/latest/google.cloud.securesourcemanager_v1.types.PullRequest.Branch` Immutable. The branch containing the changes to be merged. |
| `state` | `https://docs.cloud.google.com/python/docs/reference/securesourcemanager/latest/google.cloud.securesourcemanager_v1.types.PullRequest.State` Output only. State of the pull request (open, closed or merged). |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Creation timestamp. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Last updated timestamp. |
| `close_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. Close timestamp (if closed or merged). Cleared when pull request is re-opened. |

## Classes

### Branch

    Branch(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Branch represents a branch involved in a pull request.

### State

    State(value)

State of the pull request.