Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate issue labeler to issueLabeler.yml policy #21488

Closed
wants to merge 50 commits into from
Closed
Changes from 4 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
61f493c
Create new_labeler.ylm
sophies927 Jul 24, 2024
3fc695f
Fix issues with new labeler + move to policies folder
sophies927 Jul 26, 2024
1ea1a56
Update name + id fields
sophies927 Jul 26, 2024
288aa33
Update issueLabeler.yml to add a few additional fields
sophies927 Jul 26, 2024
3f5b1ee
Update issueLabeler.yml
sophies927 Jul 29, 2024
c4a0074
Update issueLabeler.yml
sophies927 Jul 29, 2024
26dc9ce
Create TEST_issueLabeler.yml
sophies927 Jul 29, 2024
791dd26
Update TEST_issueLabeler.yml
sophies927 Jul 29, 2024
ca310d6
Update TEST_issueLabeler.yml
sophies927 Jul 29, 2024
8001b71
Update TEST_issueLabeler.yml
sophies927 Jul 29, 2024
d15ff0e
Update TEST_issueLabeler.yml
sophies927 Jul 29, 2024
be93fae
Update TEST_issueLabeler.yml
sophies927 Jul 29, 2024
8eef1d6
Update TEST_issueLabeler.yml
sophies927 Aug 6, 2024
6f62efe
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
61558d7
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
eb59bfa
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
2883d40
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
e928614
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
ea8adb8
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
c1c735f
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
2d1f9af
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
63f0e4b
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
46bd601
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
31acf6e
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
d42a0bf
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
b652c2f
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
d30c77a
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
f026a8c
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
4c27ad2
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
0bb3519
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
0bac30b
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
6bb2c87
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
25b7f79
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
98aae6d
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
157bc3f
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
52c38f6
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
284cea6
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
8869bfd
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
5b2cb09
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
681b0bf
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
0170072
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
580a4f0
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
5f4c0c9
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
1c7f880
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
a8c7d44
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
4a213b8
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
a45504f
Update TEST_issueLabeler.yml
sophies927 Aug 7, 2024
e63ecbe
Delete .github/policies/issueLabeler.yml
sophies927 Aug 7, 2024
41827f0
Rename TEST_issueLabeler.yml to issueLabeler.yml
sophies927 Aug 7, 2024
82f3d3a
Sync update-labeling-workflow with main (#21658)
sophies927 Aug 7, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
332 changes: 332 additions & 0 deletions .github/policies/issueLabeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,332 @@
id: issueLabeler

Check failure on line 1 in .github/policies/issueLabeler.yml

View check run for this annotation

Microsoft GitHub Policy Service / GitOps/YmlValidation

.github/policies/issueLabeler.yml#L1

Invalid property for commentContainsCondition
name: GitOps.PullRequestIssueManagement
description: Assign label to new issues without a label
owner:
resource: repository
disabled: false
where:
configuration:
resourceManagementConfiguration:
eventResponderTasks:
- description: >-
Search for issue where -
* Issue is open
* Issue is not assigned to someone
* Issue is not labeled

Then -
* Apply relevant label(s) using RegEx
if:
- payloadType: Issues
- and:
- isOpen
- not:
and:
- isAssignedToSomeone
- isLabeled
then:
- if:
- or:
- titleContains:
pattern: '/(\bc\s*sharp\b|\bc#)/i'
isRegEx: true
- bodyContains:
pattern: '/(\bc\s*sharp\b|\bc#)/i'
isRegEx: true
then:
- addLabel:
label: api:CSharp
- if:
- or:
- titleContains:
pattern: '/\bjava\b/i'
isRegEx: true
- bodyContains:
pattern: '/\bjava\b/i'
isRegEx: true
then:
- addLabel:
label: api:Java
- if:
- or:
- titleContains:
pattern: '/\bjavascript\b/i'
isRegEx: true
- bodyContains:
pattern: '/\bjavascript\b/i'
isRegEx: true
then:
- addLabel:
label: api:JavaScript
- if:
- or:
- titleContains:
pattern: '/\bacl\b/i'
isRegEx: true
- bodyContains:
pattern: '/\bacl\b/i'
isRegEx: true
then:
- addLabel:
label: ep:ACL
- if:
- or:
- titleContains:
pattern: '/\barmnn\b/i'
isRegEx: true
- bodyContains:
pattern: '/\barmnn\b/i'
isRegEx: true
then:
- addLabel:
label: ep:ArmNN
- if:
- or:
- titleContains:
pattern: '/\bcann\b/i'
isRegEx: true
- bodyContains:
pattern: '/\bcann\b/i'
isRegEx: true
then:
- addLabel:
label: ep:CANN
- if:
- or:
- titleContains:
pattern: '/\bcore-?ml\b/i'
isRegEx: true
- bodyContains:
pattern: '/\bcore-?ml\b/i'
isRegEx: true
then:
- addLabel:
label: ep:CoreML
- if:
- titleContains:
pattern: '/\bcuda\b/i'
isRegEx: true
then:
- addLabel:
label: ep:CUDA
- if:
- or:
- titleContains:
pattern: '/(\bdirect\s*ml\b|\bdml\b)/i'
isRegEx: true
- bodyContains:
pattern: '/(\bdirect\s*ml\b|\bdml\b)/i'
isRegEx: true
then:
- addLabel:
label: ep:DML
- if:
- or:
- titleContains:
pattern: '/\bmi\s*graph\s*x\b/i'
isRegEx: true
- bodyContains:
pattern: '/\bmi\s*graph\s*x\b/i'
isRegEx: true
then:
- addLabel:
label: ep:MIGraphX
- if:
- or:
- titleContains:
pattern: '/\bone\s*dnn\b/i'
isRegEx: true
- bodyContains:
pattern: '/\bone\s*dnn\b/i'
isRegEx: true
then:
- addLabel:
label: ep:oneDNN
- if:
- or:
- titleContains:
pattern: '/\bopen\s*vino\b/i'
isRegEx: true
- bodyContains:
pattern: '/\bopen\s*vino\b/i'
isRegEx: true
then:
- addLabel:
label: ep:OpenVINO
- if:
- or:
- titleContains:
pattern: '/\bqnn\b/i'
isRegEx: true
- bodyContains:
pattern: '/\bqnn\b/i'
isRegEx: true
then:
- addLabel:
label: ep:QNN
- if:
- or:
- titleContains:
pattern: '/\brockchip\b/i'
isRegEx: true
- bodyContains:
pattern: '/\brockchip\b/i'
isRegEx: true
then:
- addLabel:
label: ep:RockchipNPU
- if:
- or:
- titleContains:
pattern: '/\brocm\b/i'
isRegEx: true
- bodyContains:
pattern: '/\brocm\b/i'
isRegEx: true
then:
- addLabel:
label: ep:ROCm
- if:
- or:
- titleContains:
pattern: '/\bsnpe\b/i'
isRegEx: true
- bodyContains:
pattern: '/\bsnpe\b/i'
isRegEx: true
then:
- addLabel:
label: ep:SNPE
- if:
- titleContains:
pattern: '/(\btensor\s*rt\b|\btrt\b)/i'
isRegEx: true
then:
- addLabel:
label: ep:TensorRT
- if:
- or:
- titleContains:
pattern: '/\btvm\b/i'
isRegEx: true
- bodyContains:
pattern: '/\btvm\b/i'
isRegEx: true
then:
- addLabel:
label: ep:tvm
- if:
- or:
- titleContains:
pattern: '/\bvitis(?:ai)?\b/i'
isRegEx: true
- bodyContains:
pattern: '/\bvitis(?:ai)?\b/i'
isRegEx: true
then:
- addLabel:
label: ep:VitisAI
- if:
- or:
- titleContains:
pattern: '/\bwebgpu\b/i'
isRegEx: true
- bodyContains:
pattern: '/\bwebgpu\b/i'
isRegEx: true
then:
- addLabel:
label: ep:WebGPU
- if:
- or:
- titleContains:
pattern: '/\bwebnn\b/i'
isRegEx: true
- bodyContains:
pattern: '/\bwebnn\b/i'
isRegEx: true
then:
- addLabel:
label: ep:WebNN
- if:
- or:
- titleContains:
pattern: '/\bxnn\s*pack\b/i'
isRegEx: true
- bodyContains:
pattern: '/\bxnn\s*pack\b/i'
isRegEx: true
then:
- addLabel:
label: ep:Xnnpack
- if:
- or:
- titleContains:
pattern: '/(\bjetson\b|\bjetpack\b)/i'
isRegEx: true
- bodyContains:
pattern: '/(\bjetson\b|\bjetpack\b)/i'
isRegEx: true
then:
- addLabel:
label: platform:jetson
- if:
- or:
- titleContains:
pattern: '/(\bdot\s*net\b|\bnuget\b|\.net\b)/i'
isRegEx: true
- bodyContains:
pattern: '/(\bdot\s*net\b|\bnuget\b|\.net\b)/i'
isRegEx: true
then:
- addLabel:
label: .NET
- if:
- or:
- titleContains:
pattern: '/(\bobj(?:ective)?-?c\b|\bnnapi\b|\bcore-?ml\b|\bmobile\b|\bandroid\b|\bios\b|\bxamarin\b|\bmaui\b)/i'
isRegEx: true
- bodyContains:
pattern: '/(\bobj(?:ective)?-?c\b|\bnnapi\b|\bcore-?ml\b|\bmobile\b|\bandroid\b|\bios\b|\bxamarin\b|\bmaui\b)/i'
isRegEx: true
then:
- addLabel:
label: platform:mobile
- if:
- or:
- titleContains:
pattern: '/(\bwebgl\b|\bweb-?gpu\b|\bwasm\b|\bonnxruntime-node\b|\bonnxruntime-web\b|\bonnxruntime-react-native\b|\bnpm\b)/i'
isRegEx: true
- bodyContains:
pattern: '/(\bwebgl\b|\bweb-?gpu\b|\bwasm\b|\bonnxruntime-node\b|\bonnxruntime-web\b|\bonnxruntime-react-native\b|\bnpm\b)/i'
isRegEx: true
then:
- addLabel:
label: platform:web
- if:
- titleContains:
pattern: '/(\bwindows\b|\bwinrt\b|\bwinml\b)/i'
isRegEx: true
then:
- addLabel:
label: platform:windows
- if:
- or:
- titleContains:
pattern: '/(\bhugging-?\s*face\b)/i'
isRegEx: true
- bodyContains:
pattern: '/(\bhugging-?\s*face\b)/i'
isRegEx: true
then:
- addLabel:
label: model:transformer
- if:
- titleContains:
pattern: '/(quant|\bqdq\b)/i'
isRegEx: true
then:
- addLabel:
label: quantization
onFailure:
onSuccess:
Loading