queue_rules:
  - name: default
    queue_conditions:
      - "#approved-reviews-by>1"
      - base=main
      - label=A:automerge
    merge_conditions:
      - "#approved-reviews-by>1"
    commit_message_template: |
      {{ title }} (#{{ number }})
      {{ body }}
    merge_method: squash

pull_request_rules:
  - name: backport patches to v0.55.x branch
    conditions:
      - base=main
      - label=backport/v0.55.x
    actions:
      backport:
        branches:
          - release/v0.55.x
  - name: backport patches to v0.54.x branch
    conditions:
      - base=main
      - label=backport/v0.54.x
    actions:
      backport:
        branches:
          - release/v0.54.x
  - name: backport patches to v0.53.x branch
    conditions:
      - base=main
      - label=backport/v0.53.x
    actions:
      backport:
        branches:
          - release/v0.53.x
  - name: automerge to main with label automerge and branch protection passing
    conditions: []
    actions:
      queue:
