Label on change freeze

Here's an example of adding a label to not merge a pull request when on change freeze.

api-version: reviewpad.com/v2.x

labels:
  do-not-merge:
    description: Do not merge
    color: "294b69"

rules:
  - name: isChangeFreeze
     kind: patch
     description: Change freeze is happening
     spec: $createdAt() >= 2022-04-05 && $createdAt() =< 2022-04-15

workflows:
  - name: label-no-merge
    description: Label PR with no merge when change freeze
    if:
      - rule: isChangeFreeze
    then:
      - $addLabel("do-not-merge")

Did this page help you?