---
extractors:
  component: "{{ with .Fields.Components }}{{ (index . 0).Name }}{{ end }}"
  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|Backup & Restore|Lightning|import/export|TiCDC)$
  - receiver: mayhu@pingcap.com
    continue: true
    match:
      priority: ^(P2|P3|P4)$
      component: ^(TiDB|TiDB-Compute|TiDB-SQL)$
  - receiver: hu.guo@pingcap.com
    continue: true
    match:
      priority: ^(P2|P3|P4)$
      component: ^(TiKV|BR)$
  - receiver: hua.lu@pingcap.com
    continue: true
    match:
      priority: ^(P2|P3|P4)$
      component: ^(PD|TXN)$
  - receiver: sihao.yu@pingcap.com
    continue: true
    match:
      priority: ^(P2|P3|P4)$ 
      component: ^(TiUP|Cluster Manager|Account|Billing|Dashboard|DBaaS Frontend|Dev Tier|GitOps|Monitoring|OpenAPI)$