From 6a5c11fe22ca7a090bf24de52a85ca8fdd2a3314 Mon Sep 17 00:00:00 2001 From: Ruben Hoenle Date: Tue, 28 Jul 2026 19:42:01 +0200 Subject: [PATCH] feat(github): add labeler action --- .github/labeler.yml | 80 ++++++++++++++++++++++++++++++++++ .github/workflows/labeler.yaml | 24 ++++++++++ 2 files changed, 104 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yaml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..940494098 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,80 @@ +# access +"domain:Access": +- changed-files: + - any-glob-to-any-file: + - "internal/cmd/alb/*" + - "internal/cmd/albwaf/*" + - "internal/cmd/cdn/*" + - "internal/cmd/certificates/*" + - "internal/cmd/loadbalancer/*" + - "internal/cmd/vpn/*" +# runtimes +"domain:Runtimes": +- changed-files: + - any-glob-to-any-file: + - "internal/cmd/ske/*" + - "internal/cmd/scf/*" + - "internal/cmd/edge/*" +# support +# no support domain sdk modules available yet +# central services +"domain:CentralServices": +- changed-files: + - any-glob-to-any-file: + - "internal/cmd/dns/*" + - "internal/cmd/git/*" + - "internal/cmd/intake/*" + - "internal/cmd/kms/*" + - "internal/cmd/kms/*" + - "internal/cmd/logs/*" + - "internal/cmd/modelserving/*" + - "internal/cmd/observability/*" + - "internal/cmd/rabbitmq/*" + - "internal/cmd/redis/*" + - "internal/cmd/opensearch/*" + - "internal/cmd/logme/*" + - "internal/cmd/telemetryrouter/*" + - "internal/cmd/telemetrylink/*" + - "internal/cmd/secretsmanager/*" + - "internal/cmd/dremio/*" + - "internal/cmd/modelexperiments/*" + - "internal/cmd/ufw/*" + - "internal/cmd/workflows/*" + - "internal/cmd/valkey/*" +# databases +"domain:Databases": +- changed-files: + - any-glob-to-any-file: + - "internal/cmd/mongodbflex/*" + - "internal/cmd/mariadb/*" + - "internal/cmd/sqlserverflex/*" + - "internal/cmd/postgresflex/*" +# IaaS +"domain:IaaS": +- changed-files: + - any-glob-to-any-file: + - "internal/cmd/network-area/*" + - "internal/cmd/network/*" + - "internal/cmd/network-interface/*" + - "internal/cmd/public-ip/*" + - "internal/cmd/server/*" + - "internal/cmd/volume/*" + - "internal/cmd/security-group/*" + - "internal/cmd/image/*" + - "internal/cmd/objectstorage/*" + - "internal/cmd/runcommand/*" + - "internal/cmd/serverbackup/*" + - "internal/cmd/serverupdate/*" + - "internal/cmd/sfs/*" + - "internal/cmd/automation/*" +# core platform +"domain:CorePlatform": +- changed-files: + - any-glob-to-any-file: + - "internal/cmd/auditlog/*" + - "internal/cmd/authorization/*" + - "internal/cmd/organization/*" + - "internal/cmd/project/*" + - "internal/cmd/serviceaccount/*" + - "internal/cmd/serviceenablement/*" + - "internal/cmd/cost/*" diff --git a/.github/workflows/labeler.yaml b/.github/workflows/labeler.yaml new file mode 100644 index 000000000..5b2c597df --- /dev/null +++ b/.github/workflows/labeler.yaml @@ -0,0 +1,24 @@ +name: "Labeler" +on: + pull_request: + types: [opened, synchronize] + workflow_dispatch: + schedule: + # run every full hour (to still label PRs from forks) + - cron: '0 * * * *' + +jobs: + labeler: + permissions: + contents: read + pull-requests: write + issues: write + # don't run on PRs from forks (token has no write permissions) + if: ${{ github.event.pull_request.head.repo.full_name == github.repository }} + name: "Labeler" + runs-on: ubuntu-latest + steps: + - name: Labeler action + uses: actions/labeler@v6 + with: + sync-labels: false