ci: Update labeler action

Signed-off-by: Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs <me@bjw-s.dev>
This commit is contained in:
ᗪєνιη ᗷυнʟ 2021-07-21 15:47:51 -04:00 committed by Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs
parent 75a72e87dc
commit 8f10a87533
No known key found for this signature in database
GPG Key ID: 228A77789D71A6E2
3 changed files with 41 additions and 40 deletions

26
.github/labels.json vendored
View File

@ -1,26 +0,0 @@
{
"labels": {
"kind:incorrect-title": {
"name": "kind:incorrect-title",
"colour": "#ffb700",
"description": "Incorrect title"
}
},
"issue": {
},
"pr": {
"kind:incorrect-title": {
"requires": 2,
"conditions": [
{
"type": "creatorMatches",
"pattern": "^(?!renovate).+"
},
{
"type": "titleMatches",
"pattern": "^(?!\\[[a-z0-9]+\\]\\s[A-Za-z0-9].+).+"
}
]
}
}
}

View File

@ -107,7 +107,7 @@ jobs:
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.5.3
version: v3.6.3
- uses: actions/setup-python@v2
with:
@ -174,7 +174,7 @@ jobs:
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.5.3
version: v3.6.3
- name: Install Ruby
uses: ruby/setup-ruby@v1
@ -219,7 +219,7 @@ jobs:
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.5.3
version: v3.6.3
- uses: actions/setup-python@v2
with:

View File

@ -8,7 +8,7 @@ on:
- edited
- closed
- reopened
pull_request:
pull_request_target:
types:
- opened
- edited
@ -17,11 +17,6 @@ on:
- ready_for_review
- synchronize
permissions:
contents: read
issues: write
pull-requests: write
jobs:
label:
name: Label issues and pull requests
@ -33,10 +28,42 @@ jobs:
app_id: ${{ secrets.K8S_AT_HOME_APP_ID }}
private_key: ${{ secrets.K8S_AT_HOME_APP_PRIVATE_KEY }}
- uses: actions/checkout@v2
with:
token: ${{ steps.get-app-token.outputs.token }}
- uses: IvanFon/super-labeler-action@v1
- uses: Videndum/label-mastermind@2.1.1
with:
github-token: ${{ steps.get-app-token.outputs.token }}
configJSON: |
{
"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].+).+"
}
]
}
}
}
}
]
}