Class UpdateApprovalRuleDetails
A rule which must be satisfied for matching pull requests before the pull request can be merged
Inherited Members
Namespace: Oci.DevopsService.Models
Assembly: OCI.DotNetSDK.Devops.dll
Syntax
public class UpdateApprovalRuleDetails
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<UpdateReviewerDetails> Reviewers { get; set; }
Property Value
Type | Description |
---|---|
List<UpdateReviewerDetails> | 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. |