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:44:53 +02:00
parent 25e2c34582
commit a5b459cdfc
No known key found for this signature in database
GPG Key ID: 228A77789D71A6E2

View File

@ -33,37 +33,39 @@ jobs:
GITHUB_TOKEN: ${{ steps.get-app-token.outputs.token }} GITHUB_TOKEN: ${{ steps.get-app-token.outputs.token }}
configJSON: | configJSON: |
{ {
"labels": { "releaseMastermind": {
"kind:incorrect-title": { "labels": {
"name": "kind: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": {
"kind: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].+).+"
] }
]
}
} }
} }
} }
} ]
] }
} }