Assign review to 3 developers

An example of assigning a review to at least 3 developers when changing critical code.

apiVersion: reviewpad.com/v0.0.4

rules:
  changesTransactionsCode:
    kind: patch
    description: Changes code in transactions
    spec: $hasFilePattern("src/transactions/**")

protectionGates:
  - name: ask
    description: Ask 3 developers for review
    patchRules:
      - rule: changesTransactionsCode
    actions:
      - $assignReviewer($allDevs(), 3)

Did this page help you?