Skip to content

Commit 6a5c11f

Browse files
committed
feat(github): add labeler action
1 parent 4aded74 commit 6a5c11f

2 files changed

Lines changed: 104 additions & 0 deletions

File tree

.github/labeler.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# access
2+
"domain:Access":
3+
- changed-files:
4+
- any-glob-to-any-file:
5+
- "internal/cmd/alb/*"
6+
- "internal/cmd/albwaf/*"
7+
- "internal/cmd/cdn/*"
8+
- "internal/cmd/certificates/*"
9+
- "internal/cmd/loadbalancer/*"
10+
- "internal/cmd/vpn/*"
11+
# runtimes
12+
"domain:Runtimes":
13+
- changed-files:
14+
- any-glob-to-any-file:
15+
- "internal/cmd/ske/*"
16+
- "internal/cmd/scf/*"
17+
- "internal/cmd/edge/*"
18+
# support
19+
# no support domain sdk modules available yet
20+
# central services
21+
"domain:CentralServices":
22+
- changed-files:
23+
- any-glob-to-any-file:
24+
- "internal/cmd/dns/*"
25+
- "internal/cmd/git/*"
26+
- "internal/cmd/intake/*"
27+
- "internal/cmd/kms/*"
28+
- "internal/cmd/kms/*"
29+
- "internal/cmd/logs/*"
30+
- "internal/cmd/modelserving/*"
31+
- "internal/cmd/observability/*"
32+
- "internal/cmd/rabbitmq/*"
33+
- "internal/cmd/redis/*"
34+
- "internal/cmd/opensearch/*"
35+
- "internal/cmd/logme/*"
36+
- "internal/cmd/telemetryrouter/*"
37+
- "internal/cmd/telemetrylink/*"
38+
- "internal/cmd/secretsmanager/*"
39+
- "internal/cmd/dremio/*"
40+
- "internal/cmd/modelexperiments/*"
41+
- "internal/cmd/ufw/*"
42+
- "internal/cmd/workflows/*"
43+
- "internal/cmd/valkey/*"
44+
# databases
45+
"domain:Databases":
46+
- changed-files:
47+
- any-glob-to-any-file:
48+
- "internal/cmd/mongodbflex/*"
49+
- "internal/cmd/mariadb/*"
50+
- "internal/cmd/sqlserverflex/*"
51+
- "internal/cmd/postgresflex/*"
52+
# IaaS
53+
"domain:IaaS":
54+
- changed-files:
55+
- any-glob-to-any-file:
56+
- "internal/cmd/network-area/*"
57+
- "internal/cmd/network/*"
58+
- "internal/cmd/network-interface/*"
59+
- "internal/cmd/public-ip/*"
60+
- "internal/cmd/server/*"
61+
- "internal/cmd/volume/*"
62+
- "internal/cmd/security-group/*"
63+
- "internal/cmd/image/*"
64+
- "internal/cmd/objectstorage/*"
65+
- "internal/cmd/runcommand/*"
66+
- "internal/cmd/serverbackup/*"
67+
- "internal/cmd/serverupdate/*"
68+
- "internal/cmd/sfs/*"
69+
- "internal/cmd/automation/*"
70+
# core platform
71+
"domain:CorePlatform":
72+
- changed-files:
73+
- any-glob-to-any-file:
74+
- "internal/cmd/auditlog/*"
75+
- "internal/cmd/authorization/*"
76+
- "internal/cmd/organization/*"
77+
- "internal/cmd/project/*"
78+
- "internal/cmd/serviceaccount/*"
79+
- "internal/cmd/serviceenablement/*"
80+
- "internal/cmd/cost/*"

.github/workflows/labeler.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "Labeler"
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
workflow_dispatch:
6+
schedule:
7+
# run every full hour (to still label PRs from forks)
8+
- cron: '0 * * * *'
9+
10+
jobs:
11+
labeler:
12+
permissions:
13+
contents: read
14+
pull-requests: write
15+
issues: write
16+
# don't run on PRs from forks (token has no write permissions)
17+
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
18+
name: "Labeler"
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Labeler action
22+
uses: actions/labeler@v6
23+
with:
24+
sync-labels: false

0 commit comments

Comments
 (0)