Current labeling bot over-applies many of the labels (e.g., ep:CUDA and
platform:windows) and is missing some of the APIs + EPs

Working on migrating this workflow to GitHub policies but would like to
use this fix in the meantime to avoid causing any issues w/ ORT 1.19

### Description
<!-- Describe your changes. -->



### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
This commit is contained in:
Sophie Schoenmeyer 2024-07-29 16:06:03 -07:00 коммит произвёл GitHub
Родитель 7543dd040b
Коммит d98581495f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
3 изменённых файлов: 42 добавлений и 13 удалений

31
.github/labeler.yml поставляемый
Просмотреть файл

@ -1,20 +1,25 @@
api:javascript: '/\bjavascript\b/i'
api:CSharp: '/(\bc\s*sharp\b|\bc#)/i'
api:java: '/\bjava\b/i'
api:javascript: '/\bjavascript\b/i'
ep:ACL: '/\bacl\b/i'
ep:ArmNN: '/\barmnn\b/i'
ep:CUDA: '/\bcuda\b/i'
ep:DML: '/(\bdirectml\b|\bdml\b)/i'
ep:MIGraphX: '/\bmigraphx\b/i'
ep:oneDNN: '/\bonednn\b/i'
ep:CANN: '/\bcann\b/i'
ep:CoreML: '/\bcore\s*ml\b/i'
ep:DML: '/(\bdirect\s*ml\b|\bdml\b)/i'
ep:MIGraphX: '/\bmi\s*graph\s*x\b/i'
ep:oneDNN: '/\bone\s*dnn\b/i'
ep:OpenVINO: '/\bopen\s*vino\b/i'
ep:RockchipNPU: '/\brockchip\b/i'
ep:QNN: '/\bqnn\b/i'
ep:RockchipNPU: '/\brockchip(?:npu)?\b/i'
ep:ROCm: '/\brocm\b/i'
ep:TensorRT: '/(\btensor\s*rt\b|\btrt\b)/i'
ep:SNPE: '/\bsnpe\b/i'
ep:tvm: '/\btvm\b/i'
ep:VitisAI: '/\bvitis(?:ai)?\b/i'
platform:jetson: '/\bjetson\b/i'
platform:mobile: '/(\bobj(?:ective)?-?c\b|\bnnapi\b|\bcore-?ml\b|\bmobile\b|\bandroid\b|\bios\b|\bxamarin\b|\bmaui\b)/i'
platform:web: '/(\bwebgl\b|\bweb-?gpu\b|\bwasm\b|\bonnxruntime-node\b|\bonnxruntime-web\b)/i'
platform:windows: '/(\bwindows\b|\bwinrt\b|\bwinml\b)/i'
model:transformer: '/(\bbert\b|\bgpt-?2\b|\bhugging-?face\b|\blong-?former\b|\bt5\b)/i'
quantization: '/(is this a quantized model\?\n\nYes|\bquantization\b)/i'
ep:WebGPU: '/\bwebgpu\b/i'
ep:WebNN: '/\bwebnn\b/i'
ep:Xnnpack: '/\bxnn\s*pack\b/i'
.NET: '/(\bdot\s*net\b|\bnuget\b|\.net\b)/i'
platform:jetson: '/(\bjetson\b|\bjetpack\b)/i'
platform:mobile: '/(\bobj(?:ective)?-?c\b|\bnnapi\b|\bmobile\b|\bandroid\b|\bios\b|\bxamarin\b|\bmaui\b)/i'
platform:web: '/(\bwebgl\b|\bweb-?gpu\b|\bwasm\b|\bonnxruntime-node\b|\bonnxruntime-web\b|\bonnxruntime-react-native\b|\bnpm\b|\btransformers\.js\b)/i'
model:transformer: '/\btransformers(?!\.js)\b/i'

4
.github/title-only-labeler.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,4 @@
ep:CUDA: '/\bcuda\b/i'
ep:TensorRT: '/(\btensor\s*rt\b|\btrt\b)/i'
platform:windows: '/(\bwindows\b|\bwinrt\b|\bwinml\b)/i'
quantization: '/(quant|\bqdq\b)/i'

20
.github/workflows/title-only-labeler.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,20 @@
name: "Title Only Issue Labeler"
on:
issues:
types: [opened, edited]
permissions:
issues: write
jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: github/issue-labeler@v3.4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/title-only-labeler.yml
not-before: 2020-01-15T02:54:32Z
enable-versioned-regex: 0
include-title: 1
include-body: 0