Skip to content

Commit

Permalink
fix: update labelers
Browse files Browse the repository at this point in the history
  • Loading branch information
mchestr committed Dec 14, 2023
1 parent b77c90e commit 5b8b235
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 13 deletions.
25 changes: 18 additions & 7 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
---
# Area
area/ansible:
- "ansible/**/*"
- changed-files:
- any-glob-to-any-file: ansible/**/*
area/github:
- ".github/**/*"
area/hack:
- "hack/**/*"
- changed-files:
- any-glob-to-any-file: .github/**/*
area/kubernetes:
- "kubernetes/**/*"
- changed-files:
- any-glob-to-any-file: kubernetes/**/*
area/taskfile:
- changed-files:
- any-glob-to-any-file: .taskfiles/**/*
- any-glob-to-any-file: Taskfile*
area/terraform:
- "terraform/**/*"
- changed-files:
- any-glob-to-any-file: terraform/**/*
area/talos:
- "talos/**/*"
- changed-files:
- any-glob-to-any-file: talos/**/*
area/hack:
- changed-files:
- any-glob-to-any-file: hack/**/*
4 changes: 4 additions & 0 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
color: "72ccf3"
description: >-
Changes made in the terraform directory
- name: area/talos
color: "72ccf3"
description: >-
Changes made in the talos directory
# Renovate
- name: renovate/container
color: "ffc300"
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/meta-labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,27 @@ name: "Meta Labeler"

on:
workflow_dispatch:
pull_request:
pull_request_target:
branches: ["main"]
types: ["opened", "synchronize"]

jobs:
labeler:
name: Labeler
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Generate Token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
id: generate-token
uses: actions/create-github-app-token@2986852ad836768dfea7781f31828eb3e17990fa # v1.6.2
id: app-token
with:
app_id: "${{ secrets.BOT_APP_ID }}"
private_key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"
app-id: "${{ secrets.BOT_APP_ID }}"
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}"

- name: Labeler
uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
with:
configuration-path: .github/labeler.yaml
repo-token: "${{ steps.generate-token.outputs.token }}"
repo-token: "${{ steps.app-token.outputs.token }}"

0 comments on commit 5b8b235

Please sign in to comment.