public sealed class PullRequest : IMessage<PullRequest>, IEquatable<PullRequest>, IDeepCloneable<PullRequest>, IBufferMessage, IMessageReference documentation and code samples for the Developer Connect v1 API class PullRequest.
Message representing a SCM Pull Request.
Implements
IMessagePullRequest, IEquatablePullRequest, IDeepCloneablePullRequest, IBufferMessage, IMessageNamespace
Google.Cloud.DeveloperConnect.V1Assembly
Google.Cloud.DeveloperConnect.V1.dll
Constructors
PullRequest()
public PullRequest()PullRequest(PullRequest)
public PullRequest(PullRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
PullRequest |
Properties
Author
public string Author { get; set; }Output only. The username of the author.
| Property Value | |
|---|---|
| Type | Description |
string |
|
BaseRef
public string BaseRef { get; set; }Required. The target commit SHA of the base branch.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Body
public string Body { get; set; }Optional. The body description of the PR.
| Property Value | |
|---|---|
| Type | Description |
string |
|
CloseTime
public Timestamp CloseTime { get; set; }Output only. When the PR was closed.
| Property Value | |
|---|---|
| Type | Description |
Timestamp |
|
CreateTime
public Timestamp CreateTime { get; set; }Output only. When the PR was created.
| Property Value | |
|---|---|
| Type | Description |
Timestamp |
|
DeclineTime
public Timestamp DeclineTime { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
Timestamp |
|
HeadRef
public string HeadRef { get; set; }Required. The source commit SHA of the head branch.
| Property Value | |
|---|---|
| Type | Description |
string |
|
HtmlUrl
public string HtmlUrl { get; set; }Output only. The HTML URL of the pull request on the SCM provider.
| Property Value | |
|---|---|
| Type | Description |
string |
|
Id
public string Id { get; set; }Required. The ID of the PR.
| Property Value | |
|---|---|
| Type | Description |
string |
|
MergeTime
public Timestamp MergeTime { get; set; }Output only. When the PR was merged.
| Property Value | |
|---|---|
| Type | Description |
Timestamp |
|
Mergeability
public PullRequest.Types.Mergeability Mergeability { get; set; }Output only. The mergeability state of the pull request.
| Property Value | |
|---|---|
| Type | Description |
PullRequestTypesMergeability |
|
State
public PullRequest.Types.State State { get; set; }Output only. The current state of the PR.
| Property Value | |
|---|---|
| Type | Description |
PullRequestTypesState |
|
Title
public string Title { get; set; }Required. The title of the PR.
| Property Value | |
|---|---|
| Type | Description |
string |
|
UpdateTime
public Timestamp UpdateTime { get; set; }Output only. When the PR was updated.
| Property Value | |
|---|---|
| Type | Description |
Timestamp |
|