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