Skip to content

Commit

Permalink
Update issueLabeler.yml to fix label removal logic (#959)
Browse files Browse the repository at this point in the history
Issue labeler currently adds back label if it is manually removed. These
changes should fix this logic using the "labelRemoved" condition.
  • Loading branch information
sophies927 authored Oct 7, 2024
1 parent bcf55a6 commit c8e931d
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions .github/policies/issueLabeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ configuration:
if:
- payloadType: Issues
- isOpen
- not:
labelRemoved:
label: api:java
- or:
- titleContains:
pattern: (?i)\bjava\b
Expand All @@ -25,6 +28,9 @@ configuration:
if:
- payloadType: Issues
- isOpen
- not:
labelRemoved:
label: api:javascript
- or:
- titleContains:
pattern: (?i)\bjavascript\b
Expand All @@ -39,16 +45,22 @@ configuration:
if:
- payloadType: Issues
- isOpen
- not:
labelRemoved:
label: ep:CUDA
- titleContains:
pattern: (?i)\bcuda\b
isRegex: True
then:
- addLabel:
label: ep:CUDA
label: ep:CUDA
- description: Add ep:DML label to new issues
if:
- payloadType: Issues
- isOpen
- not:
labelRemoved:
label: ep:DML
- or:
- titleContains:
pattern: (?i)(\bdirect\s*ml\b|\bdml\b)
Expand All @@ -63,6 +75,9 @@ configuration:
if:
- payloadType: Issues
- isOpen
- not:
labelRemoved:
label: ep:TensorRT
- titleContains:
pattern: (?i)(\btensor\s*rt\b|\btrt\b)
isRegex: True
Expand All @@ -73,6 +88,9 @@ configuration:
if:
- payloadType: Issues
- isOpen
- not:
labelRemoved:
label: platform:jetson
- or:
- titleContains:
pattern: (?i)(\bjetson\b|\bjetpack\b)
Expand All @@ -87,6 +105,9 @@ configuration:
if:
- payloadType: Issues
- isOpen
- not:
labelRemoved:
label: platform:mobile
- or:
- titleContains:
pattern: (?i)(\bobj(?:ective)?-?c\b|\bnnapi\b|\bmobile\b|\bandroid\b|\bios\b|\bxamarin\b|\bmaui\b)
Expand All @@ -101,30 +122,22 @@ configuration:
if:
- payloadType: Issues
- isOpen
- not:
labelRemoved:
label: platform:windows
- titleContains:
pattern: (?i)(\bwindows\b|\bwinrt\b|\bwinml\b)
isRegex: True
then:
- addLabel:
label: platform:windows
- description: Add model:transformer label to new issues
if:
- payloadType: Issues
- isOpen
- or:
- titleContains:
pattern: (?i)\btransformers(?!\.js)\b
isRegex: True
- bodyContains:
pattern: (?i)\btransformers(?!\.js)\b
isRegex: True
then:
- addLabel:
label: model:transformer
- description: Add quantization label to new issues
if:
- payloadType: Issues
- isOpen
- not:
labelRemoved:
label: quantization
- titleContains:
pattern: (?i)(quant|\bqdq\b)
isRegex: True
Expand Down

0 comments on commit c8e931d

Please sign in to comment.