Reference documentation and code samples for the Developer Connect V1 API class Google::Cloud::DeveloperConnect::V1::PullRequest.
Message representing a SCM Pull Request.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#author
def author() -> ::String
Returns
- (::String) — Output only. The username of the author.
#base_ref
def base_ref() -> ::String
Returns
- (::String) — Required. The target commit SHA of the base branch.
#base_ref=
def base_ref=(value) -> ::String
Parameter
- value (::String) — Required. The target commit SHA of the base branch.
Returns
- (::String) — Required. The target commit SHA of the base branch.
#body
def body() -> ::String
Returns
- (::String) — Optional. The body description of the PR.
#body=
def body=(value) -> ::String
Parameter
- value (::String) — Optional. The body description of the PR.
Returns
- (::String) — Optional. The body description of the PR.
#close_time
def close_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. When the PR was closed.
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. When the PR was created.
#decline_time
def decline_time() -> ::Google::Protobuf::Timestamp
Returns
-
(::Google::Protobuf::Timestamp) — Output only. When the PR was declined. Only set for SCM providers that
support declining pull requests. Never set for GitHub, GitHub Enterprise,
GitLab, or GitLab Enterprise, where a pull request closed without being
merged is
CLOSED.
#head_ref
def head_ref() -> ::String
Returns
- (::String) — Required. The source commit SHA of the head branch.
#head_ref=
def head_ref=(value) -> ::String
Parameter
- value (::String) — Required. The source commit SHA of the head branch.
Returns
- (::String) — Required. The source commit SHA of the head branch.
#html_url
def html_url() -> ::String
Returns
- (::String) — Output only. The HTML URL of the pull request on the SCM provider.
#id
def id() -> ::String
Returns
- (::String) — Required. The ID of the PR.
#id=
def id=(value) -> ::String
Parameter
- value (::String) — Required. The ID of the PR.
Returns
- (::String) — Required. The ID of the PR.
#merge_time
def merge_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. When the PR was merged.
#mergeability
def mergeability() -> ::Google::Cloud::DeveloperConnect::V1::PullRequest::Mergeability
Returns
- (::Google::Cloud::DeveloperConnect::V1::PullRequest::Mergeability) — Output only. The mergeability state of the pull request.
#state
def state() -> ::Google::Cloud::DeveloperConnect::V1::PullRequest::State
Returns
- (::Google::Cloud::DeveloperConnect::V1::PullRequest::State) — Output only. The current state of the PR.
#title
def title() -> ::String
Returns
- (::String) — Required. The title of the PR.
#title=
def title=(value) -> ::String
Parameter
- value (::String) — Required. The title of the PR.
Returns
- (::String) — Required. The title of the PR.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. When the PR was updated.