Fix feature request label

This commit is contained in:
Jinzhu 2020-10-19 11:49:03 +08:00
parent 5731e632db
commit 9dbef26feb
1 changed files with 23 additions and 1 deletions

24
.github/labels.json vendored
View File

@ -10,6 +10,11 @@
"colour": "#EDEDED", "colour": "#EDEDED",
"description": "general questions" "description": "general questions"
}, },
"feature": {
"name": "type:feature_request",
"colour": "#43952A",
"description": "feature request"
},
"invalid_question": { "invalid_question": {
"name": "type:invalid question", "name": "type:invalid question",
"colour": "#CF2E1F", "colour": "#CF2E1F",
@ -82,8 +87,21 @@
} }
] ]
}, },
"feature": {
"requires": 1,
"conditions": [
{
"type": "titleMatches",
"pattern": "/feature/i"
},
{
"type": "descriptionMatches",
"pattern": "/Describe the feature/i"
}
]
},
"without_playground": { "without_playground": {
"requires": 5, "requires": 6,
"conditions": [ "conditions": [
{ {
"type": "descriptionMatches", "type": "descriptionMatches",
@ -97,6 +115,10 @@
"type": "descriptionMatches", "type": "descriptionMatches",
"pattern": "/^((?!question).)*$/is" "pattern": "/^((?!question).)*$/is"
}, },
{
"type": "descriptionMatches",
"pattern": "/^((?!Describe the feature).)*$/is"
},
{ {
"type": "titleMatches", "type": "titleMatches",
"pattern": "/^((?!critical|urgent).)*$/s" "pattern": "/^((?!critical|urgent).)*$/s"