Show / Hide Table of Contents

Class CreatePullRequestDetails

The information about new Pull Request.

Inheritance
object
CreatePullRequestDetails
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 CreatePullRequestDetails

Properties

DefinedTags

Declaration
[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"}}

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
[JsonProperty(PropertyName = "destinationBranch")]
public string DestinationBranch { get; set; }
Property Value
Type Description
string

The destination branch of the pull request. If not provided, default branch will be used as the destination branch.

DisplayName

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

Pull Request title

Remarks

Required

FreeformTags

Declaration
[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"}

RepositoryId

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

The OCID of the repository.

Remarks

Required

Reviewers

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

Reviewers for this pull request.

SourceBranch

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

The source branch of the pull request.

Remarks

Required

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.

In this article
Back to top