Skip to content

Commit 7b0cddf

Browse files
authored
feat adjust dockerfile (#47)
1 parent b86bdcf commit 7b0cddf

6 files changed

Lines changed: 529 additions & 402 deletions

File tree

.github/labeler.yml

Lines changed: 46 additions & 202 deletions
Original file line numberDiff line numberDiff line change
@@ -1,225 +1,69 @@
1-
# RuiQi WAF Management System - GitHub Actions Labeler Configuration
2-
# Usage: https://github.com/actions/labeler
1+
# 🎯 RuiQi WAF Management System - 简化版标签配置
2+
# 仅包含20个实用标签,避免过度复杂
33

4-
# 📚 文档和指南
5-
area/documentation:
6-
- any: ["docs/**/*", "README.md", "**/*.md", "LICENSE"]
7-
- any: ["doc/**/*", "*.md"]
8-
9-
area/proposal:
10-
- any: ["doc/proposal/**/*"]
11-
12-
# 🔧 后端开发
13-
area/backend:
14-
- any: ["server/**/*"]
15-
- any: ["**/*.go"]
16-
17-
area/api:
18-
- any: ["server/api/**/*", "server/router/**/*"]
19-
- any: ["server/handler/**/*", "server/controller/**/*"]
20-
21-
area/middleware:
22-
- any: ["server/middleware/**/*"]
23-
24-
area/models:
25-
- any: ["server/models/**/*", "server/entity/**/*"]
26-
- any: ["**/*_model.go", "**/*_entity.go"]
27-
28-
area/database:
29-
- any: ["server/database/**/*", "server/db/**/*", "server/model/**/*"]
30-
- any: ["server/migration/**/*", "**/*_migration.go"]
31-
32-
# 🎨 前端开发
4+
# ======== 🎨 前端相关 ========
335
area/frontend:
346
- any: ["web/**/*"]
7+
- any: ["**/*.tsx", "**/*.jsx", "**/*.vue"]
8+
- any: ["**/*.css", "**/*.scss", "**/*.sass", "**/*.less"]
359

36-
area/ui:
37-
- any: ["web/**/*.tsx", "web/**/*.jsx"]
38-
- any: ["web/**/*.vue", "web/**/*.svelte"]
39-
- any: ["**/*.tsx", "**/*.jsx"] # 保留通用匹配
40-
- any: ["**/*.vue", "**/*.svelte"]
41-
42-
area/styles:
43-
- any: ["web/**/*.css", "web/**/*.scss", "web/**/*.sass"]
44-
- any: ["web/**/*.less", "web/**/*.styl"]
45-
- any: ["**/*.css", "**/*.scss", "**/*.sass"] # 保留通用匹配
46-
- any: ["**/*.less", "**/*.styl"]
47-
48-
area/components:
49-
- any: ["web/**/components/**/*", "web/**/component/**/*"]
50-
- any: ["**/components/**/*", "**/component/**/*"] # 保留通用匹配
51-
52-
# 🛡️ 安全引擎
53-
area/waf:
54-
- any: ["coraza-spoa/**/*"]
55-
- any: ["**/*coraza*", "**/*waf*"]
10+
# ======== 🔧 后端相关 ========
11+
area/backend:
12+
- any: ["server/**/*"]
13+
- any: ["**/*.go", "!**/*_test.go"] # Go文件但排除测试文件
14+
- any: ["pkg/**/*"]
5615

16+
# ======== 🛡️ 安全引擎 ========
5717
area/security:
18+
- any: ["coraza-spoa/**/*"]
5819
- any: ["**/security/**/*", "**/auth/**/*"]
59-
- any: ["**/*auth*", "**/*security*", "**/*jwt*"]
60-
61-
area/rules:
62-
- any: ["**/rules/**/*", "**/*rule*"]
63-
- any: ["**/*.conf", "**/*.cfg"]
64-
65-
area/microengine:
66-
- any: ["**/microengine/**/*", "pkg/microengine/**/*"]
67-
68-
# 🌐 网络和代理
69-
area/haproxy:
70-
- any: ["**/*haproxy*", "**/haproxy/**/*"]
71-
- any: ["**/*.cfg", "**/haproxy.conf"]
72-
73-
area/proxy:
74-
- any: ["**/proxy/**/*", "**/*proxy*"]
75-
76-
area/networking:
77-
- any: ["**/network/**/*", "**/net/**/*"]
78-
79-
# 📦 包管理和依赖
80-
area/dependencies:
81-
- any: ["go.mod", "go.sum", "package.json", "pnpm-lock.yaml"]
82-
- any: ["yarn.lock", "package-lock.json"]
83-
84-
area/packages:
85-
- any: ["pkg/**/*"]
20+
- any: ["**/*waf*", "**/*coraza*"]
8621

87-
# 🔧 配置和环境
88-
area/config:
89-
- any: ["**/*.env*", "**/config/**/*"]
90-
- any: ["**/*.yaml", "**/*.yml", "**/*.json"]
91-
- any: ["**/*.toml", "**/*.ini"]
22+
# ======== 📚 文档相关 ========
23+
area/docs:
24+
- any: ["**/*.md", "docs/**/*", "doc/**/*"]
25+
- any: ["README*", "LICENSE*", "CHANGELOG*"]
9226

93-
area/docker:
94-
- any: ["Dockerfile*", "docker-compose*.yml", "docker-compose*.yaml"]
95-
- any: [".dockerignore", "**/docker/**/*"]
96-
97-
# 🧪 测试
27+
# ======== 🧪 测试相关 ========
9828
area/test:
9929
- any: ["**/*_test.go", "**/test/**/*"]
10030
- any: ["**/*.test.js", "**/*.spec.js"]
10131
- any: ["**/*.test.tsx", "**/*.spec.tsx"]
10232

103-
area/integration-test:
104-
- any: ["**/integration/**/*", "**/e2e/**/*"]
33+
# ======== 🔧 配置文件 ========
34+
area/config:
35+
- any: ["**/*.yaml", "**/*.yml", "**/*.json", "**/*.toml"]
36+
- any: ["**/*.env*", "**/config/**/*"]
37+
- any: ["Dockerfile*", "docker-compose*", ".dockerignore"]
10538

106-
# 🚀 部署和运维
39+
# ======== 🚀 CI/CD相关 ========
10740
area/ci:
10841
- any: [".github/**/*"]
109-
- any: [".gitlab-ci.yml", ".travis.yml", "Jenkinsfile"]
110-
111-
area/deployment:
112-
- any: ["deploy/**/*", "**/deploy/**/*"]
113-
- any: ["k8s/**/*", "kubernetes/**/*"]
114-
- any: ["helm/**/*", "charts/**/*"]
115-
116-
area/scripts:
11742
- any: ["scripts/**/*", "**/*.sh", "**/*.bat"]
11843
- any: ["Makefile", "makefile"]
11944

120-
# 📊 监控和日志
121-
area/monitoring:
122-
- any: ["**/monitoring/**/*", "**/metrics/**/*"]
123-
- any: ["**/*monitor*", "**/*metric*"]
124-
125-
area/logging:
126-
- any: ["**/log/**/*", "**/logs/**/*"]
127-
- any: ["**/*log*", "**/*logger*"]
128-
129-
# 🔍 分析和仪表板
130-
area/analytics:
131-
- any: ["**/analytics/**/*", "**/dashboard/**/*"]
132-
- any: ["**/*analytics*", "**/*dashboard*"]
133-
134-
area/visualization:
135-
- any: ["**/chart/**/*", "**/graph/**/*"]
136-
- any: ["**/*chart*", "**/*graph*", "**/*viz*"]
137-
138-
# 🌍 地理和位置
139-
area/geo:
140-
- any: ["**/geo/**/*", "**/location/**/*"]
141-
- any: ["**/*geo*", "**/*location*", "**/*geoip*"]
142-
143-
# ⚡ 性能和优化
144-
area/performance:
145-
- any: ["**/performance/**/*", "**/perf/**/*"]
146-
- any: ["**/*perf*", "**/*performance*", "**/*optimize*"]
147-
148-
area/cache:
149-
- any: ["**/cache/**/*", "**/*cache*"]
150-
- any: ["**/redis/**/*", "**/memcached/**/*"]
151-
152-
# 🔄 流量控制
153-
area/rate-limiting:
154-
- any: ["**/rate/**/*", "**/limit/**/*"]
155-
- any: ["**/*rate*", "**/*limit*", "**/*throttle*"]
156-
157-
# 🚨 警报和通知
158-
area/alerts:
159-
- any: ["**/alert/**/*", "**/notification/**/*"]
160-
- any: ["**/*alert*", "**/*notification*", "**/*webhook*"]
161-
162-
# 🤖 AI和机器学习
163-
area/ai:
164-
- any: ["**/ai/**/*", "**/ml/**/*"]
165-
- any: ["**/*ai*", "**/*ml*", "**/*machine*"]
166-
167-
area/mcp:
168-
- any: ["**/mcp/**/*", "**/*mcp*"]
169-
170-
# 🔐 认证和授权
171-
area/auth:
172-
- any: ["**/auth/**/*", "**/authentication/**/*"]
173-
- any: ["**/authorization/**/*", "**/rbac/**/*"]
174-
175-
# 📱 API文档
176-
area/api-docs:
177-
- any: ["**/swagger/**/*", "**/openapi/**/*"]
178-
- any: ["**/*swagger*", "**/*openapi*", "**/*redoc*"]
179-
180-
# 🔧 工具和实用程序
181-
area/utils:
182-
- any: ["**/utils/**/*", "**/util/**/*"]
183-
- any: ["**/helper/**/*", "**/common/**/*"]
184-
185-
# 🗄️ 存储
186-
area/storage:
187-
- any: ["**/storage/**/*", "**/store/**/*"]
188-
- any: ["**/*storage*", "**/*store*"]
189-
190-
# 🌐 国际化
191-
area/i18n:
192-
- any: ["**/i18n/**/*", "**/locale/**/*"]
193-
- any: ["**/*i18n*", "**/*locale*", "**/*lang*"]
45+
# ======== 📦 依赖管理 ========
46+
area/deps:
47+
- any: ["go.mod", "go.sum", "go.work"]
48+
- any: ["package.json", "package-lock.json", "pnpm-lock.yaml", "yarn.lock"]
19449
# ============================================================================
195-
# 💡 类型标签 (可选 - 基于 PR 大小和类型)
50+
# 💡 手动标签说明 (这些标签已创建,需要手动添加到PR)
19651
# ============================================================================
19752

198-
# 📏 大小标签 (需要额外的 GitHub Action)
199-
# size/XS: 0-9 lines
200-
# size/S: 10-29 lines
201-
# size/M: 30-99 lines
202-
# size/L: 100-499 lines
203-
# size/XL: 500-999 lines
204-
# size/XXL: 1000+ lines
205-
206-
# 🏷️ 类型标签 (需要手动添加或基于 conventional commits)
207-
# type/feat: 新功能
208-
# type/fix: 错误修复
209-
# type/docs: 文档更新
210-
# type/style: 代码格式化
211-
# type/refactor: 代码重构
212-
# type/test: 测试相关
213-
# type/chore: 构建过程或辅助工具的变动
214-
215-
# 🚨 优先级标签 (需要手动添加)
216-
# priority/critical: 紧急修复
217-
# priority/high: 高优先级
218-
# priority/medium: 中等优先级
219-
# priority/low: 低优先级
220-
221-
# 🎯 状态标签 (需要手动添加)
222-
# status/needs-review: 需要代码审查
223-
# status/needs-testing: 需要测试
224-
# status/ready-to-merge: 准备合并
225-
# status/blocked: 被阻塞
53+
# 🏷️ 类型标签 (手动添加)
54+
# type/feat - ✨ 新功能
55+
# type/fix - 🐛 错误修复
56+
# type/docs - 📚 文档更新
57+
# type/refactor - ♻️ 代码重构
58+
# type/test - 🧪 测试相关
59+
# type/chore - 🔧 杂项/构建
60+
61+
# 🚨 优先级标签 (手动添加)
62+
# priority/high - 🔥 高优先级
63+
# priority/medium - ⚡ 中等优先级
64+
# priority/low - 🌱 低优先级
65+
66+
# 🎯 状态标签 (手动添加)
67+
# status/needs-review - 👀 需要代码审查
68+
# status/ready-to-merge - ✅ 准备合并
69+
# status/blocked - 🚫 被阻塞

0 commit comments

Comments
 (0)