Show / Hide Table of Contents

Class PullRequest

Pull Request containing the diff between a review branch and a destination branch

Inheritance
object
PullRequest
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.DevopsService.Models
Assembly: OCI.DotNetSDK.Devops.dll
Syntax
public class PullRequest

Properties

CompartmentId

Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type Description
string

Compartment Identifier

Remarks

Required

CreatedBy

Declaration
[Required(ErrorMessage = "CreatedBy is required.")]
[JsonProperty(PropertyName = "createdBy")]
public PrincipalDetails CreatedBy { get; set; }
Property Value
Type Description
PrincipalDetails
Remarks

Required

DefinedTags

Declaration
[Required(ErrorMessage = "DefinedTags is required.")]
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {"foo-namespace": {"bar-key": "value"}}

Remarks

Required

Description

Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type Description
string

Details of the pull request. Avoid entering confidential information.

DestinationBranch

Declaration
[Required(ErrorMessage = "DestinationBranch is required.")]
[JsonProperty(PropertyName = "destinationBranch")]
public string DestinationBranch { get; set; }
Property Value
Type Description
string

The destination branch against which the changes are to be reviewed. Example: "main".

Remarks

Required

DisplayName

Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type Description
string

PullRequest title, can be renamed

Remarks

Required

FreeformTags

Declaration
[Required(ErrorMessage = "FreeformTags is required.")]
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
Dictionary<string, string>

Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {"bar-key": "value"}

Remarks

Required

Id

Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type Description
string

Unique identifier that is immutable on creation

Remarks

Required

LifecycleDetails

Declaration
[Required(ErrorMessage = "LifecycleDetails is required.")]
[JsonProperty(PropertyName = "lifecycleDetails")]
[JsonConverter(typeof(ResponseEnumConverter))]
public PullRequest.LifecycleDetailsEnum? LifecycleDetails { get; set; }
Property Value
Type Description
PullRequest.LifecycleDetailsEnum?

The status of the Pull Request.

Remarks

Required

LifecycleState

Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public PullRequest.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
Type Description
PullRequest.LifecycleStateEnum?

The current state of the PullRequest.

Remarks

Required

MergeBaseCommitIdAtTermination

Declaration
[JsonProperty(PropertyName = "mergeBaseCommitIdAtTermination")]
public string MergeBaseCommitIdAtTermination { get; set; }
Property Value
Type Description
string

The merge base commit ID when the Pull Request status was last changed to merged or closed

MergeChecks

Declaration
[JsonProperty(PropertyName = "mergeChecks")]
public MergeCheckCollection MergeChecks { get; set; }
Property Value
Type Description
MergeCheckCollection

MergedBy

Declaration
[JsonProperty(PropertyName = "mergedBy")]
public PrincipalDetails MergedBy { get; set; }
Property Value
Type Description
PrincipalDetails

RepositoryId

Declaration
[Required(ErrorMessage = "RepositoryId is required.")]
[JsonProperty(PropertyName = "repositoryId")]
public string RepositoryId { get; set; }
Property Value
Type Description
string

DevOps Repository Identifier tells which repository this pull request belongs to

Remarks

Required

Reviewers

Declaration
[JsonProperty(PropertyName = "reviewers")]
public List<Reviewer> Reviewers { get; set; }
Property Value
Type Description
List<Reviewer>

List of Reviewers.

SourceBranch

Declaration
[Required(ErrorMessage = "SourceBranch is required.")]
[JsonProperty(PropertyName = "sourceBranch")]
public string SourceBranch { get; set; }
Property Value
Type Description
string

The source branch which contains the changes to be reviewed. Example: "feature/JIRA-123"

Remarks

Required

SourceCommitIdAtTermination

Declaration
[JsonProperty(PropertyName = "sourceCommitIdAtTermination")]
public string SourceCommitIdAtTermination { get; set; }
Property Value
Type Description
string

The source branch commit ID when the Pull Request status was last changed to merged or closed

SourceRepositoryId

Declaration
[JsonProperty(PropertyName = "sourceRepositoryId")]
public string SourceRepositoryId { get; set; }
Property Value
Type Description
string

The OCID of the forked repository that will act as the source of the changes to be included in the pull request against the parent repository.

SystemTags

Declaration
[Required(ErrorMessage = "SystemTags is required.")]
[JsonProperty(PropertyName = "systemTags")]
public Dictionary<string, Dictionary<string, object>> SystemTags { get; set; }
Property Value
Type Description
Dictionary<string, Dictionary<string, object>>

Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {"orcl-cloud": {"free-tier-retained": "true"}}

Remarks

Required

TimeCreated

Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The time the PullRequest was created. An RFC3339 formatted datetime string

Remarks

Required

TimeUpdated

Declaration
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type Description
DateTime?

The time the PullRequest was updated. An RFC3339 formatted datetime string

TotalComments

Declaration
[Required(ErrorMessage = "TotalComments is required.")]
[JsonProperty(PropertyName = "totalComments")]
public int? TotalComments { get; set; }
Property Value
Type Description
int?

The total number of comments on the pull request.

Remarks

Required

TotalReviewers

Declaration
[Required(ErrorMessage = "TotalReviewers is required.")]
[JsonProperty(PropertyName = "totalReviewers")]
public int? TotalReviewers { get; set; }
Property Value
Type Description
int?

The total number of reviewers on the pull request.

Remarks

Required

In this article
Back to top