Show / Hide Table of Contents

Class ApprovalRule

A rule which must be satisfied for matching pull requests before the pull request can be merged

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

Properties

DestinationBranch

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

Branch name where pull requests targeting the branch must satisfy the approval rule. This value being null means the rule applies to all pull requests

MinApprovalsCount

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

Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied

Remarks

Required

Name

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

Name which is used to uniquely identify an approval rule.

Remarks

Required

Reviewers

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

List of users who must provide approvals up to the minApprovalsCount specified in the rule. An empty list means the approvals can come from any user.

In this article
Back to top