ci: Update labeler workflow

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2021-07-24 10:12:42 +02:00
parent a66ace3641
commit 25e2c34582
No known key found for this signature in database
GPG Key ID: 228A77789D71A6E2

View File

@ -32,9 +32,10 @@ jobs:
with: with:
GITHUB_TOKEN: ${{ steps.get-app-token.outputs.token }} GITHUB_TOKEN: ${{ steps.get-app-token.outputs.token }}
configJSON: | configJSON: |
{
"labels": { "labels": {
"meta-incorrect-title": { "kind:incorrect-title": {
"name": "meta-incorrect-title", "name": "kind:incorrect-title",
"colour": "#ffb700", "colour": "#ffb700",
"description": "Incorrect title" "description": "Incorrect title"
} }
@ -48,7 +49,7 @@ jobs:
}, },
"pr": { "pr": {
"labels": { "labels": {
"meta-incorrect-title": { "kind:incorrect-title": {
"requires": 2, "requires": 2,
"conditions": [ "conditions": [
{ {
@ -57,7 +58,7 @@ jobs:
}, },
{ {
"type": "titleMatches", "type": "titleMatches",
"pattern": "^(?!\\[[a-z0-9]+\\]\\s[A-Z0-9].+).+" "pattern": "^(?!\[[a-z0-9]+\]\s[A-Z0-9].+).+"
} }
] ]
} }
@ -65,3 +66,4 @@ jobs:
} }
} }
] ]
}