From 9dbef26feb3c9554aecdb792c4029fb3a68ac16e Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Mon, 19 Oct 2020 11:49:03 +0800 Subject: [PATCH] Fix feature request label --- .github/labels.json | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/labels.json b/.github/labels.json index 6b9c2034..5c7eb7d1 100644 --- a/.github/labels.json +++ b/.github/labels.json @@ -10,6 +10,11 @@ "colour": "#EDEDED", "description": "general questions" }, + "feature": { + "name": "type:feature_request", + "colour": "#43952A", + "description": "feature request" + }, "invalid_question": { "name": "type:invalid question", "colour": "#CF2E1F", @@ -82,8 +87,21 @@ } ] }, + "feature": { + "requires": 1, + "conditions": [ + { + "type": "titleMatches", + "pattern": "/feature/i" + }, + { + "type": "descriptionMatches", + "pattern": "/Describe the feature/i" + } + ] + }, "without_playground": { - "requires": 5, + "requires": 6, "conditions": [ { "type": "descriptionMatches", @@ -97,6 +115,10 @@ "type": "descriptionMatches", "pattern": "/^((?!question).)*$/is" }, + { + "type": "descriptionMatches", + "pattern": "/^((?!Describe the feature).)*$/is" + }, { "type": "titleMatches", "pattern": "/^((?!critical|urgent).)*$/s"