From bcf55a6dc563bc8b356128b47504d59a21c5ef2f Mon Sep 17 00:00:00 2001 From: Sophie Schoenmeyer <107952697+sophies927@users.noreply.github.com> Date: Tue, 1 Oct 2024 15:14:26 -0700 Subject: [PATCH] Update issueLabeler.yml to include all labels (#950) Got test_issueLabeler.yml working w/ RegEx for ep:CUDA label, so now I'm adding RegEx for all of the labels. --- .github/policies/issueLabeler.yml | 197 +++++++++++++++++++----------- 1 file changed, 123 insertions(+), 74 deletions(-) diff --git a/.github/policies/issueLabeler.yml b/.github/policies/issueLabeler.yml index 462c0c710..f0e1ff0e4 100644 --- a/.github/policies/issueLabeler.yml +++ b/.github/policies/issueLabeler.yml @@ -1,86 +1,135 @@ id: name: Issue Triage -description: Assign label to issues +description: Assign label to issues owner: resource: repository where: configuration: resourceManagementConfiguration: eventResponderTasks: - - if: + - description: Add api:java label to new issues + if: - payloadType: Issues - - and: - - isOpen - - not: - and: - - isAssignedToSomeone - - isLabeled + - isOpen + - or: + - titleContains: + pattern: (?i)\bjava\b + isRegex: True + - bodyContains: + pattern: (?i)\bjava\b + isRegex: True then: - - if: - - or: - - titleContains: - pattern: '/\bcuda\b/i' - isRegex: True - - bodyContains: - pattern: '/\bcuda\b/i' - isRegex: True - then: - - addLabel: - label: ep:CUDA - - 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: '/(\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: '/(\bobj(?:ective)?-?c\b|\bnnapi\b|\bmobile\b|\bandroid\b|\bios\b|\bxamarin\b|\bmaui\b)/i' - isRegex: True - - bodyContains: - pattern: '/(\bobj(?:ective)?-?c\b|\bnnapi\b|\bmobile\b|\bandroid\b|\bios\b|\bxamarin\b|\bmaui\b)/i' - isRegex: True - then: - - addLabel: - label: platform:mobile - - if: - - or: - - titleContains: - pattern: '/(\bwindows\b|\bwinrt\b|\bwinml\b)/i' - isRegex: True - - bodyContains: - pattern: '/(\bwindows\b|\bwinrt\b|\bwinml\b)/i' - isRegex: True - then: - - addLabel: - label: platform:windows - - if: - - or: - - titleContains: - pattern: '/\btransformers(?!\.js)\b/i' - isRegex: True - - bodyContains: - pattern: '/\btransformers(?!\.js)\b/i' - isRegex: True - then: - - addLabel: - label: model:transformer + - addLabel: + label: api:java + - description: Add api:javascript label to new issues + if: + - payloadType: Issues + - isOpen + - or: + - titleContains: + pattern: (?i)\bjavascript\b + isRegex: True + - bodyContains: + pattern: (?i)\bjavascript\b + isRegex: True + then: + - addLabel: + label: api:javascript + - description: Add ep:CUDA label to new issues + if: + - payloadType: Issues + - isOpen + - titleContains: + pattern: (?i)\bcuda\b + isRegex: True + then: + - addLabel: + label: ep:CUDA + - description: Add ep:DML label to new issues + if: + - payloadType: Issues + - isOpen + - or: + - titleContains: + pattern: (?i)(\bdirect\s*ml\b|\bdml\b) + isRegex: True + - bodyContains: + pattern: (?i)(\bdirect\s*ml\b|\bdml\b) + isRegex: True + then: + - addLabel: + label: ep:DML + - description: Add ep:TensorRT label to new issues + if: + - payloadType: Issues + - isOpen + - titleContains: + pattern: (?i)(\btensor\s*rt\b|\btrt\b) + isRegex: True + then: + - addLabel: + label: ep:TensorRT + - description: Add platform:jetson label to new issues + if: + - payloadType: Issues + - isOpen + - or: + - titleContains: + pattern: (?i)(\bjetson\b|\bjetpack\b) + isRegex: True + - bodyContains: + pattern: (?i)(\bjetson\b|\bjetpack\b) + isRegex: True + then: + - addLabel: + label: platform:jetson + - description: Add platform:mobile label to new issues + if: + - payloadType: Issues + - isOpen + - or: + - titleContains: + pattern: (?i)(\bobj(?:ective)?-?c\b|\bnnapi\b|\bmobile\b|\bandroid\b|\bios\b|\bxamarin\b|\bmaui\b) + isRegex: True + - bodyContains: + pattern: (?i)(\bobj(?:ective)?-?c\b|\bnnapi\b|\bmobile\b|\bandroid\b|\bios\b|\bxamarin\b|\bmaui\b) + isRegex: True + then: + - addLabel: + label: platform:mobile + - description: Add platform:windows label to new issues + if: + - payloadType: Issues + - isOpen + - 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 + - titleContains: + pattern: (?i)(quant|\bqdq\b) + isRegex: True + then: + - addLabel: + label: quantization onFailure: onSuccess: