---
extractors:
  component: "{{ with .Fields.Components }}{{ (index . 0).Name }}{{ end }}"
  # MIGRATE RELATED
  provider_type: "{{ (.Fields.Unknowns.customfield_10160 | tryUnmarshalJson).labels.provider_type }}"
  o11y_biz_type: "{{ (.Fields.Unknowns.customfield_10160 | tryUnmarshalJson).labels.o11y_biz_type }}"
  fbowner: "{{ (.Fields.Unknowns.customfield_10634 | tryUnmarshalJson).name }}"
  summary: "{{ .Fields.Summary }}"
  priority: "{{ .Fields.Priority.Name }}"
routes:
  - receiver: firemaster
    continue: true
    match:
      priority: ^(P0|P1)$
  - receiver: kaijie.chen@pingcap.com
    continue: true
    match:
      priority: ^(P2|P3|P4)$
      component: ^(TiDB-Optimizer|TiFlash|Test-only)$
  - receiver: mayhu@pingcap.com
    continue: true
    match:
      priority: ^(P2|P3|P4)$
      component: ^(TiDB|TiDB-Compute|TiDB-SQL)$
  - receiver: yucun.li@pingcap.com
    continue: true
    match:
      priority: ^(P2|P3|P4)$
      component: ^(Backup & Restore|Lightning|import/export|TiCDC)$
  - receiver: hu.guo@pingcap.com
    continue: true
    match:
      priority: ^(P2|P3|P4)$
      component: ^(TiKV|TXN)$
  - receiver: hua.lu@pingcap.com
    continue: true
    match:
      priority: ^(P2|P3|P4)$
      component: ^(PD|TiKV|TXN)$
  - receiver: charles.m@pingcap.com
    continue: true
    match:
      priority: ^(P2|P3|P4)$ 
      component: ^(Cluster Manager|Account|Billing|Dashboard|DBaaS Frontend|Dev Tier|GitOps|Monitoring|OpenAPI)$