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. 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 |
google.cloud.securesourcemanager_v1.types.PullRequest.Branch
Required. The branch to merge changes in. |
head |
google.cloud.securesourcemanager_v1.types.PullRequest.Branch
Immutable. The branch containing the changes to be merged. |
state |
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.