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:00:08 +02:00
parent 1e5f1ad50a
commit a66ace3641
No known key found for this signature in database
GPG Key ID: 228A77789D71A6E2

View File

@ -32,36 +32,36 @@ jobs:
with: with:
GITHUB_TOKEN: ${{ steps.get-app-token.outputs.token }} GITHUB_TOKEN: ${{ steps.get-app-token.outputs.token }}
configJSON: | configJSON: |
"labels": { "labels": {
"kind:incorrect-title": { "meta-incorrect-title": {
"name": "kind:incorrect-title", "name": "meta-incorrect-title",
"colour": "#ffb700", "colour": "#ffb700",
"description": "Incorrect title" "description": "Incorrect title"
} }
}, },
"runners": [ "runners": [
{ {
"root": ".", "root": ".",
"versioning": { "versioning": {
"source": "milestones", "source": "milestones",
"type": "other" "type": "other"
}, },
"pr": { "pr": {
"labels": { "labels": {
"kind:incorrect-title": { "meta-incorrect-title": {
"requires": 2, "requires": 2,
"conditions": [ "conditions": [
{ {
"type": "creatorMatches", "type": "creatorMatches",
"pattern": "^(?!renovate).+" "pattern": "^(?!renovate).+"
}, },
{ {
"type": "titleMatches", "type": "titleMatches",
"pattern": "^(?!\\[[a-z0-9]+\\]\\s[A-Z0-9].+).+" "pattern": "^(?!\\[[a-z0-9]+\\]\\s[A-Z0-9].+).+"
} }
] ]
}
} }
} }
} }
] }
]