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.53.x branch
    conditions:
      - base=main
      - label=backport/v0.53.x
    actions:
      backport:
        branches:
          - release/v0.53.x
  - name: backport patches to v0.50.x branch
    conditions:
      - base=main
      - label=backport/v0.50.x
    actions:
      backport:
        branches:
          - release/v0.50.x
  - name: backport patches to v0.47.x branch
    conditions:
      - base=main
      - label=backport/v0.47.x
    actions:
      backport:
        branches:
          - release/v0.47.x
  - name: backport patches to v0.46.x branch
    conditions:
      - base=main
      - label=backport/0.46.x
    actions:
      backport:
        branches:
          - release/v0.46.x
  - name: backport patches to v0.45.x branch
    conditions:
      - base=main
      - label=backport/0.45.x
    actions:
      backport:
        branches:
          - release/v0.45.x
  - name: automerge to main with label automerge and branch protection passing
    conditions: []
    actions:
      queue: