Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace ApprovalRule

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

Properties

Optional destinationBranch

destinationBranch: undefined | 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

minApprovalsCount: number

Minimum number of approvals which must be provided by the reviewers specified in the list before the rule can be satisfied Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

name

name: string

Name which is used to uniquely identify an approval rule.

Optional reviewers

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.

Functions

getDeserializedJsonObj

getJsonObj