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