diff --git a/.github/labels.json b/.github/labels.json deleted file mode 100644 index be99e3a2..00000000 --- a/.github/labels.json +++ /dev/null @@ -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].+).+" - } - ] - } - } -} diff --git a/.github/workflows/charts-lint-test.yaml b/.github/workflows/charts-lint-test.yaml index b32da934..00bb3189 100644 --- a/.github/workflows/charts-lint-test.yaml +++ b/.github/workflows/charts-lint-test.yaml @@ -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: diff --git a/.github/workflows/metadata-label-issues-prs.yaml b/.github/workflows/metadata-label-issues-prs.yaml index 2ba89842..32d01d7b 100644 --- a/.github/workflows/metadata-label-issues-prs.yaml +++ b/.github/workflows/metadata-label-issues-prs.yaml @@ -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].+).+" + } + ] + } + } + } + } + ] + }