---
queue_rules:
  - name: default
    speculative_checks: 20
    batch_size: 20
    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="rust-checks / builds-with-minimal-deps (macos-latest)"
      - check-success="rust-checks / builds-with-minimal-deps (ubuntu-latest)"
      - check-success="rust-checks / builds-with-minimal-deps (windows-latest)"
      - check-success="rust-checks / security-audit-minimal"
      - base=main
      - author~=^dependabot(|-preview)\[bot\]$
pull_request_rules:
  - name: request review on external contributor
    conditions: [-author=PurpleBooth]
    actions:
      assign:
        add_users: [PurpleBooth]
  - name: automatic rebase for dependencies
    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="rust-checks / builds-with-minimal-deps (macos-latest)"
      - check-success="rust-checks / builds-with-minimal-deps (ubuntu-latest)"
      - check-success="rust-checks / builds-with-minimal-deps (windows-latest)"
      - check-success="rust-checks / security-audit-minimal"
      - base=main
      - author~=^dependabot(|-preview)\[bot\]$
    actions:
      queue:
        method: rebase
        name: default
