queue_rules:
- name: default
  speculative_checks: 20
  batch_size: 20
  merge_conditions:
  - check-success=lint-markdown / lint-markdown
  - check-success=rust-checks / check
  - check-success=rust-checks / test (macos-latest)
  - check-success=rust-checks / test (ubuntu-latest)
  - check-success=rust-checks / test (windows-latest)
  - check-success=rust-checks / lints (macos-latest)
  - check-success=rust-checks / lints (ubuntu-latest)
  - check-success=rust-checks / lints (windows-latest)
  - check-success=rust-checks / security-audit
  - check-success=rust-checks / bench (macos-latest)
  - check-success=rust-checks / bench (ubuntu-latest)
  - check-success=rust-checks / bench (windows-latest)
  - check-success=specdown / specdown (macos-latest)
  - check-success=specdown / specdown (ubuntu-latest)
  - check-success=specdown / specdown (windows-latest)
  - check-success=docker-build / docker-build
  - base=main

pull_request_rules:
- name: request review on external contributor
  conditions:
  - -author=PurpleBooth
  actions:
    assign:
      add_users:
      - PurpleBooth

- name: automatic rebase for dependencies
  conditions:
  - base=main
  - author~=^dependabot(|-preview)\[bot\]$
  actions:
    queue:
      name: default
