From 545fa9899629dc99f76952daf62dda6ff903e838 Mon Sep 17 00:00:00 2001 From: Andy De George <67293991+adegeo@users.noreply.github.com> Date: Tue, 8 Dec 2020 14:45:48 -0800 Subject: [PATCH] update label rules (#148) --- .ghal.rules.json | 68 ++++++++++++++++++++++++++++++------------------ 1 file changed, 43 insertions(+), 25 deletions(-) diff --git a/.ghal.rules.json b/.ghal.rules.json index 272758d..8ef15b6 100644 --- a/.ghal.rules.json +++ b/.ghal.rules.json @@ -1,35 +1,53 @@ { "version": 3, - "configRevision": 2, + "configRevision": 3, "issue": { + "labeled": { + "processor-conditional": { + "type": "query", + "value": "length(Issue.labels[?contains(name, '/prod') || contains(name, '/tech')]) != `0`", + "processors": { + "processor-conditional": { + "type": "query", + "value": "length(Issue.labels[?name == 'doc-enhancement' || name == 'product-question' || name == 'in-progress' || name == 'test-issue' || name == 'kudos' || name == 'loc' || name == 'doc-bug' || name == 'product-feedback' || name == 'code-of-conduct' || name == 'support-request' || name == 'duplicate' || name == 'resolved-by-customer' || name == 'docs-experience' || name == 'doc-provided' || name == 'doc-idea' || name == 'needs-more-info']) != `0`", + "actions": { + "labels-remove": ":watch: Not Triaged" + }, + "actions-failed": { + "labels-add": ":watch: Not Triaged" + } + }, + "processor-meta-docs": { + "technology": { + "(?i)dotnet-wpf$": { + "labels-add": ":card_file_box: Technology - WPF" + }, + "(?i)dotnet-winforms$": { + "labels-add": ":card_file_box: Technology - WinForms" + } + }, + "contentsource": { + "(?i).*dotnet-desktop-guide\/framework\/wpf.*": { + "labels-add": ":books: Area - .NET Framework,:card_file_box: Technology - WPF" + }, + "(?i).*dotnet-desktop-guide\/framework\/winforms.*": { + "labels-add": ":books: Area - .NET Framework,:card_file_box: Technology - WinForms" + }, + "(?i).*dotnet-desktop-guide\/net\/wpf.*": { + "labels-add": ":books: Area - .NET,:card_file_box: Technology - WPF" + }, + "(?i).*dotnet-desktop-guide\/net\/winforms.*": { + "labels-add": ":books: Area - .NET,:card_file_box: Technology - WinForms" + } + } + } + } + } + }, "opened": { "processor-default": { "labels-add": [ ":watch: Not Triaged" ] - }, - "processor-meta-docs": { - "technology": { - "(?i)dotnet-wpf$": { - "labels-add": ":card_file_box: Technology - WPF" - }, - "(?i)dotnet-winforms$": { - "labels-add": ":card_file_box: Technology - WinForms" - } - }, - "contentsource": { - "(?i).*dotnet-desktop-guide\/framework\/wpf.*": { - "labels-add": ":books: Area - .NET Framework,:card_file_box: Technology - WPF" - }, - "(?i).*dotnet-desktop-guide\/framework\/winforms.*": { - "labels-add": ":books: Area - .NET Framework,:card_file_box: Technology - WinForms" - }, - "(?i).*dotnet-desktop-guide\/net\/wpf.*": { - "labels-add": ":books: Area - .NET,:card_file_box: Technology - WPF" - }, - "(?i).*dotnet-desktop-guide\/net\/winforms.*": { - "labels-add": ":books: Area - .NET,:card_file_box: Technology - WinForms" - } - } } }, "closed": {