@fitlab-ai/agent-infra 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/License.txt +21 -0
  2. package/README.md +170 -0
  3. package/README.zh-CN.md +170 -0
  4. package/bin/cli.js +65 -0
  5. package/lib/defaults.json +45 -0
  6. package/lib/init.js +203 -0
  7. package/lib/log.js +27 -0
  8. package/lib/paths.js +48 -0
  9. package/lib/prompt.js +70 -0
  10. package/lib/render.js +99 -0
  11. package/lib/update.js +161 -0
  12. package/lib/version.js +7 -0
  13. package/package.json +48 -0
  14. package/templates/.agent-workspace/README.md +26 -0
  15. package/templates/.agent-workspace/README.zh-CN.md +26 -0
  16. package/templates/.agents/QUICKSTART.md +166 -0
  17. package/templates/.agents/QUICKSTART.zh-CN.md +166 -0
  18. package/templates/.agents/README.md +134 -0
  19. package/templates/.agents/README.zh-CN.md +134 -0
  20. package/templates/.agents/skills/analyze-task/SKILL.md +169 -0
  21. package/templates/.agents/skills/analyze-task/SKILL.zh-CN.md +169 -0
  22. package/templates/.agents/skills/block-task/SKILL.md +164 -0
  23. package/templates/.agents/skills/block-task/SKILL.zh-CN.md +163 -0
  24. package/templates/.agents/skills/check-task/SKILL.md +122 -0
  25. package/templates/.agents/skills/check-task/SKILL.zh-CN.md +122 -0
  26. package/templates/.agents/skills/close-codescan/SKILL.md +122 -0
  27. package/templates/.agents/skills/close-codescan/SKILL.zh-CN.md +122 -0
  28. package/templates/.agents/skills/close-dependabot/SKILL.md +130 -0
  29. package/templates/.agents/skills/close-dependabot/SKILL.zh-CN.md +130 -0
  30. package/templates/.agents/skills/commit/SKILL.md +218 -0
  31. package/templates/.agents/skills/commit/SKILL.zh-CN.md +217 -0
  32. package/templates/.agents/skills/complete-task/SKILL.md +139 -0
  33. package/templates/.agents/skills/complete-task/SKILL.zh-CN.md +137 -0
  34. package/templates/.agents/skills/create-pr/SKILL.md +126 -0
  35. package/templates/.agents/skills/create-pr/SKILL.zh-CN.md +125 -0
  36. package/templates/.agents/skills/create-release-note/SKILL.md +167 -0
  37. package/templates/.agents/skills/create-release-note/SKILL.zh-CN.md +166 -0
  38. package/templates/.agents/skills/create-task/SKILL.md +143 -0
  39. package/templates/.agents/skills/create-task/SKILL.zh-CN.md +143 -0
  40. package/templates/.agents/skills/implement-task/SKILL.md +229 -0
  41. package/templates/.agents/skills/implement-task/SKILL.zh-CN.md +227 -0
  42. package/templates/.agents/skills/import-codescan/SKILL.md +103 -0
  43. package/templates/.agents/skills/import-codescan/SKILL.zh-CN.md +103 -0
  44. package/templates/.agents/skills/import-dependabot/SKILL.md +107 -0
  45. package/templates/.agents/skills/import-dependabot/SKILL.zh-CN.md +107 -0
  46. package/templates/.agents/skills/import-issue/SKILL.md +119 -0
  47. package/templates/.agents/skills/import-issue/SKILL.zh-CN.md +119 -0
  48. package/templates/.agents/skills/init-labels/SKILL.md +74 -0
  49. package/templates/.agents/skills/init-labels/SKILL.zh-CN.md +74 -0
  50. package/templates/.agents/skills/init-labels/scripts/init-labels.sh +111 -0
  51. package/templates/.agents/skills/init-milestones/SKILL.md +74 -0
  52. package/templates/.agents/skills/init-milestones/SKILL.zh-CN.md +74 -0
  53. package/templates/.agents/skills/init-milestones/scripts/init-milestones.sh +169 -0
  54. package/templates/.agents/skills/plan-task/SKILL.md +225 -0
  55. package/templates/.agents/skills/plan-task/SKILL.zh-CN.md +225 -0
  56. package/templates/.agents/skills/refine-task/SKILL.md +200 -0
  57. package/templates/.agents/skills/refine-task/SKILL.zh-CN.md +200 -0
  58. package/templates/.agents/skills/refine-title/SKILL.md +84 -0
  59. package/templates/.agents/skills/refine-title/SKILL.zh-CN.md +83 -0
  60. package/templates/.agents/skills/release/SKILL.md +142 -0
  61. package/templates/.agents/skills/release/SKILL.zh-CN.md +141 -0
  62. package/templates/.agents/skills/release/scripts/manage-milestones.sh +80 -0
  63. package/templates/.agents/skills/review-task/SKILL.md +276 -0
  64. package/templates/.agents/skills/review-task/SKILL.zh-CN.md +276 -0
  65. package/templates/.agents/skills/sync-issue/SKILL.md +569 -0
  66. package/templates/.agents/skills/sync-issue/SKILL.zh-CN.md +569 -0
  67. package/templates/.agents/skills/sync-pr/SKILL.md +142 -0
  68. package/templates/.agents/skills/sync-pr/SKILL.zh-CN.md +142 -0
  69. package/templates/.agents/skills/test/SKILL.md +61 -0
  70. package/templates/.agents/skills/test/SKILL.zh-CN.md +61 -0
  71. package/templates/.agents/skills/test-integration/SKILL.md +70 -0
  72. package/templates/.agents/skills/test-integration/SKILL.zh-CN.md +69 -0
  73. package/templates/.agents/skills/update-agent-infra/SKILL.md +136 -0
  74. package/templates/.agents/skills/update-agent-infra/SKILL.zh-CN.md +124 -0
  75. package/templates/.agents/skills/update-agent-infra/scripts/package.json +3 -0
  76. package/templates/.agents/skills/update-agent-infra/scripts/sync-templates.js +469 -0
  77. package/templates/.agents/skills/upgrade-dependency/SKILL.md +88 -0
  78. package/templates/.agents/skills/upgrade-dependency/SKILL.zh-CN.md +87 -0
  79. package/templates/.agents/templates/handoff.md +60 -0
  80. package/templates/.agents/templates/handoff.zh-CN.md +60 -0
  81. package/templates/.agents/templates/review-report.md +67 -0
  82. package/templates/.agents/templates/review-report.zh-CN.md +67 -0
  83. package/templates/.agents/templates/task.md +65 -0
  84. package/templates/.agents/templates/task.zh-CN.md +65 -0
  85. package/templates/.agents/workflows/bug-fix.yaml +149 -0
  86. package/templates/.agents/workflows/bug-fix.zh-CN.yaml +149 -0
  87. package/templates/.agents/workflows/code-review.yaml +60 -0
  88. package/templates/.agents/workflows/code-review.zh-CN.yaml +60 -0
  89. package/templates/.agents/workflows/feature-development.yaml +150 -0
  90. package/templates/.agents/workflows/feature-development.zh-CN.yaml +150 -0
  91. package/templates/.agents/workflows/refactoring.yaml +154 -0
  92. package/templates/.agents/workflows/refactoring.zh-CN.yaml +154 -0
  93. package/templates/.claude/CLAUDE.md +163 -0
  94. package/templates/.claude/CLAUDE.zh-CN.md +163 -0
  95. package/templates/.claude/commands/analyze-task.md +8 -0
  96. package/templates/.claude/commands/analyze-task.zh-CN.md +8 -0
  97. package/templates/.claude/commands/block-task.md +8 -0
  98. package/templates/.claude/commands/block-task.zh-CN.md +8 -0
  99. package/templates/.claude/commands/check-task.md +8 -0
  100. package/templates/.claude/commands/check-task.zh-CN.md +8 -0
  101. package/templates/.claude/commands/close-codescan.md +8 -0
  102. package/templates/.claude/commands/close-codescan.zh-CN.md +8 -0
  103. package/templates/.claude/commands/close-dependabot.md +8 -0
  104. package/templates/.claude/commands/close-dependabot.zh-CN.md +8 -0
  105. package/templates/.claude/commands/commit.md +7 -0
  106. package/templates/.claude/commands/commit.zh-CN.md +7 -0
  107. package/templates/.claude/commands/complete-task.md +8 -0
  108. package/templates/.claude/commands/complete-task.zh-CN.md +8 -0
  109. package/templates/.claude/commands/create-pr.md +8 -0
  110. package/templates/.claude/commands/create-pr.zh-CN.md +8 -0
  111. package/templates/.claude/commands/create-release-note.md +8 -0
  112. package/templates/.claude/commands/create-release-note.zh-CN.md +8 -0
  113. package/templates/.claude/commands/create-task.md +8 -0
  114. package/templates/.claude/commands/create-task.zh-CN.md +8 -0
  115. package/templates/.claude/commands/implement-task.md +8 -0
  116. package/templates/.claude/commands/implement-task.zh-CN.md +8 -0
  117. package/templates/.claude/commands/import-codescan.md +8 -0
  118. package/templates/.claude/commands/import-codescan.zh-CN.md +8 -0
  119. package/templates/.claude/commands/import-dependabot.md +8 -0
  120. package/templates/.claude/commands/import-dependabot.zh-CN.md +8 -0
  121. package/templates/.claude/commands/import-issue.md +8 -0
  122. package/templates/.claude/commands/import-issue.zh-CN.md +8 -0
  123. package/templates/.claude/commands/init-labels.md +7 -0
  124. package/templates/.claude/commands/init-labels.zh-CN.md +7 -0
  125. package/templates/.claude/commands/init-milestones.md +8 -0
  126. package/templates/.claude/commands/init-milestones.zh-CN.md +8 -0
  127. package/templates/.claude/commands/plan-task.md +8 -0
  128. package/templates/.claude/commands/plan-task.zh-CN.md +8 -0
  129. package/templates/.claude/commands/refine-task.md +8 -0
  130. package/templates/.claude/commands/refine-task.zh-CN.md +8 -0
  131. package/templates/.claude/commands/refine-title.md +8 -0
  132. package/templates/.claude/commands/refine-title.zh-CN.md +8 -0
  133. package/templates/.claude/commands/release.md +8 -0
  134. package/templates/.claude/commands/release.zh-CN.md +8 -0
  135. package/templates/.claude/commands/review-task.md +8 -0
  136. package/templates/.claude/commands/review-task.zh-CN.md +8 -0
  137. package/templates/.claude/commands/sync-issue.md +8 -0
  138. package/templates/.claude/commands/sync-issue.zh-CN.md +8 -0
  139. package/templates/.claude/commands/sync-pr.md +8 -0
  140. package/templates/.claude/commands/sync-pr.zh-CN.md +8 -0
  141. package/templates/.claude/commands/test-integration.md +7 -0
  142. package/templates/.claude/commands/test-integration.zh-CN.md +7 -0
  143. package/templates/.claude/commands/test.md +7 -0
  144. package/templates/.claude/commands/test.zh-CN.md +7 -0
  145. package/templates/.claude/commands/update-agent-infra.md +7 -0
  146. package/templates/.claude/commands/update-agent-infra.zh-CN.md +7 -0
  147. package/templates/.claude/commands/upgrade-dependency.md +8 -0
  148. package/templates/.claude/commands/upgrade-dependency.zh-CN.md +8 -0
  149. package/templates/.claude/project-rules.md +65 -0
  150. package/templates/.claude/project-rules.zh-CN.md +65 -0
  151. package/templates/.claude/settings.json +20 -0
  152. package/templates/.codex/README.md +38 -0
  153. package/templates/.codex/README.zh-CN.md +37 -0
  154. package/templates/.editorconfig +15 -0
  155. package/templates/.gemini/commands/_project_/analyze-task.toml +8 -0
  156. package/templates/.gemini/commands/_project_/analyze-task.zh-CN.toml +8 -0
  157. package/templates/.gemini/commands/_project_/block-task.toml +8 -0
  158. package/templates/.gemini/commands/_project_/block-task.zh-CN.toml +8 -0
  159. package/templates/.gemini/commands/_project_/check-task.toml +8 -0
  160. package/templates/.gemini/commands/_project_/check-task.zh-CN.toml +8 -0
  161. package/templates/.gemini/commands/_project_/close-codescan.toml +8 -0
  162. package/templates/.gemini/commands/_project_/close-codescan.zh-CN.toml +8 -0
  163. package/templates/.gemini/commands/_project_/close-dependabot.toml +8 -0
  164. package/templates/.gemini/commands/_project_/close-dependabot.zh-CN.toml +8 -0
  165. package/templates/.gemini/commands/_project_/commit.toml +6 -0
  166. package/templates/.gemini/commands/_project_/commit.zh-CN.toml +6 -0
  167. package/templates/.gemini/commands/_project_/complete-task.toml +8 -0
  168. package/templates/.gemini/commands/_project_/complete-task.zh-CN.toml +8 -0
  169. package/templates/.gemini/commands/_project_/create-pr.toml +8 -0
  170. package/templates/.gemini/commands/_project_/create-pr.zh-CN.toml +8 -0
  171. package/templates/.gemini/commands/_project_/create-release-note.toml +8 -0
  172. package/templates/.gemini/commands/_project_/create-release-note.zh-CN.toml +8 -0
  173. package/templates/.gemini/commands/_project_/create-task.toml +8 -0
  174. package/templates/.gemini/commands/_project_/create-task.zh-CN.toml +8 -0
  175. package/templates/.gemini/commands/_project_/implement-task.toml +8 -0
  176. package/templates/.gemini/commands/_project_/implement-task.zh-CN.toml +8 -0
  177. package/templates/.gemini/commands/_project_/import-codescan.toml +8 -0
  178. package/templates/.gemini/commands/_project_/import-codescan.zh-CN.toml +8 -0
  179. package/templates/.gemini/commands/_project_/import-dependabot.toml +8 -0
  180. package/templates/.gemini/commands/_project_/import-dependabot.zh-CN.toml +8 -0
  181. package/templates/.gemini/commands/_project_/import-issue.toml +8 -0
  182. package/templates/.gemini/commands/_project_/import-issue.zh-CN.toml +8 -0
  183. package/templates/.gemini/commands/_project_/init-labels.toml +8 -0
  184. package/templates/.gemini/commands/_project_/init-labels.zh-CN.toml +8 -0
  185. package/templates/.gemini/commands/_project_/init-milestones.toml +10 -0
  186. package/templates/.gemini/commands/_project_/init-milestones.zh-CN.toml +10 -0
  187. package/templates/.gemini/commands/_project_/plan-task.toml +8 -0
  188. package/templates/.gemini/commands/_project_/plan-task.zh-CN.toml +8 -0
  189. package/templates/.gemini/commands/_project_/refine-task.toml +8 -0
  190. package/templates/.gemini/commands/_project_/refine-task.zh-CN.toml +8 -0
  191. package/templates/.gemini/commands/_project_/refine-title.toml +8 -0
  192. package/templates/.gemini/commands/_project_/refine-title.zh-CN.toml +8 -0
  193. package/templates/.gemini/commands/_project_/release.toml +8 -0
  194. package/templates/.gemini/commands/_project_/release.zh-CN.toml +8 -0
  195. package/templates/.gemini/commands/_project_/review-task.toml +8 -0
  196. package/templates/.gemini/commands/_project_/review-task.zh-CN.toml +8 -0
  197. package/templates/.gemini/commands/_project_/sync-issue.toml +8 -0
  198. package/templates/.gemini/commands/_project_/sync-issue.zh-CN.toml +8 -0
  199. package/templates/.gemini/commands/_project_/sync-pr.toml +8 -0
  200. package/templates/.gemini/commands/_project_/sync-pr.zh-CN.toml +8 -0
  201. package/templates/.gemini/commands/_project_/test-integration.toml +6 -0
  202. package/templates/.gemini/commands/_project_/test-integration.zh-CN.toml +6 -0
  203. package/templates/.gemini/commands/_project_/test.toml +6 -0
  204. package/templates/.gemini/commands/_project_/test.zh-CN.toml +6 -0
  205. package/templates/.gemini/commands/_project_/update-agent-infra.toml +6 -0
  206. package/templates/.gemini/commands/_project_/update-agent-infra.zh-CN.toml +6 -0
  207. package/templates/.gemini/commands/_project_/upgrade-dependency.toml +8 -0
  208. package/templates/.gemini/commands/_project_/upgrade-dependency.zh-CN.toml +8 -0
  209. package/templates/.gemini/settings.json +3 -0
  210. package/templates/.github/ISSUE_TEMPLATE/01_bug_report.yml +149 -0
  211. package/templates/.github/ISSUE_TEMPLATE/02_question.yml +101 -0
  212. package/templates/.github/ISSUE_TEMPLATE/03_feature_request.yml +131 -0
  213. package/templates/.github/ISSUE_TEMPLATE/04_documentation.yml +165 -0
  214. package/templates/.github/ISSUE_TEMPLATE/05_other.yml +147 -0
  215. package/templates/.github/ISSUE_TEMPLATE/config.yml +11 -0
  216. package/templates/.github/PULL_REQUEST_TEMPLATE.md +123 -0
  217. package/templates/.github/dependabot.yml +17 -0
  218. package/templates/.github/hooks/check-utf8-encoding.sh +25 -0
  219. package/templates/.github/release.yml +27 -0
  220. package/templates/.github/workflows/pr-title-check.yml +42 -0
  221. package/templates/.mailmap +4 -0
  222. package/templates/.opencode/COMMAND_STYLE_GUIDE.md +232 -0
  223. package/templates/.opencode/COMMAND_STYLE_GUIDE.zh-CN.md +232 -0
  224. package/templates/.opencode/README.md +76 -0
  225. package/templates/.opencode/README.zh-CN.md +77 -0
  226. package/templates/.opencode/commands/analyze-task.md +11 -0
  227. package/templates/.opencode/commands/analyze-task.zh-CN.md +11 -0
  228. package/templates/.opencode/commands/block-task.md +11 -0
  229. package/templates/.opencode/commands/block-task.zh-CN.md +11 -0
  230. package/templates/.opencode/commands/check-task.md +11 -0
  231. package/templates/.opencode/commands/check-task.zh-CN.md +11 -0
  232. package/templates/.opencode/commands/close-codescan.md +11 -0
  233. package/templates/.opencode/commands/close-codescan.zh-CN.md +11 -0
  234. package/templates/.opencode/commands/close-dependabot.md +11 -0
  235. package/templates/.opencode/commands/close-dependabot.zh-CN.md +11 -0
  236. package/templates/.opencode/commands/commit.md +9 -0
  237. package/templates/.opencode/commands/commit.zh-CN.md +9 -0
  238. package/templates/.opencode/commands/complete-task.md +11 -0
  239. package/templates/.opencode/commands/complete-task.zh-CN.md +11 -0
  240. package/templates/.opencode/commands/create-pr.md +11 -0
  241. package/templates/.opencode/commands/create-pr.zh-CN.md +11 -0
  242. package/templates/.opencode/commands/create-release-note.md +11 -0
  243. package/templates/.opencode/commands/create-release-note.zh-CN.md +11 -0
  244. package/templates/.opencode/commands/create-task.md +11 -0
  245. package/templates/.opencode/commands/create-task.zh-CN.md +11 -0
  246. package/templates/.opencode/commands/implement-task.md +11 -0
  247. package/templates/.opencode/commands/implement-task.zh-CN.md +11 -0
  248. package/templates/.opencode/commands/import-codescan.md +11 -0
  249. package/templates/.opencode/commands/import-codescan.zh-CN.md +11 -0
  250. package/templates/.opencode/commands/import-dependabot.md +11 -0
  251. package/templates/.opencode/commands/import-dependabot.zh-CN.md +11 -0
  252. package/templates/.opencode/commands/import-issue.md +11 -0
  253. package/templates/.opencode/commands/import-issue.zh-CN.md +11 -0
  254. package/templates/.opencode/commands/init-labels.md +9 -0
  255. package/templates/.opencode/commands/init-labels.zh-CN.md +9 -0
  256. package/templates/.opencode/commands/init-milestones.md +11 -0
  257. package/templates/.opencode/commands/init-milestones.zh-CN.md +11 -0
  258. package/templates/.opencode/commands/plan-task.md +11 -0
  259. package/templates/.opencode/commands/plan-task.zh-CN.md +11 -0
  260. package/templates/.opencode/commands/refine-task.md +11 -0
  261. package/templates/.opencode/commands/refine-task.zh-CN.md +11 -0
  262. package/templates/.opencode/commands/refine-title.md +11 -0
  263. package/templates/.opencode/commands/refine-title.zh-CN.md +11 -0
  264. package/templates/.opencode/commands/release.md +11 -0
  265. package/templates/.opencode/commands/release.zh-CN.md +11 -0
  266. package/templates/.opencode/commands/review-task.md +11 -0
  267. package/templates/.opencode/commands/review-task.zh-CN.md +11 -0
  268. package/templates/.opencode/commands/sync-issue.md +11 -0
  269. package/templates/.opencode/commands/sync-issue.zh-CN.md +11 -0
  270. package/templates/.opencode/commands/sync-pr.md +11 -0
  271. package/templates/.opencode/commands/sync-pr.zh-CN.md +11 -0
  272. package/templates/.opencode/commands/test-integration.md +9 -0
  273. package/templates/.opencode/commands/test-integration.zh-CN.md +9 -0
  274. package/templates/.opencode/commands/test.md +9 -0
  275. package/templates/.opencode/commands/test.zh-CN.md +9 -0
  276. package/templates/.opencode/commands/update-agent-infra.md +9 -0
  277. package/templates/.opencode/commands/update-agent-infra.zh-CN.md +9 -0
  278. package/templates/.opencode/commands/upgrade-dependency.md +11 -0
  279. package/templates/.opencode/commands/upgrade-dependency.zh-CN.md +11 -0
  280. package/templates/AGENTS.md +91 -0
  281. package/templates/AGENTS.zh-CN.md +91 -0
  282. package/templates/CONTRIBUTING.md +126 -0
  283. package/templates/CONTRIBUTING.zh-CN.md +124 -0
  284. package/templates/SECURITY.md +131 -0
  285. package/templates/SECURITY.zh-CN.md +131 -0
@@ -0,0 +1,131 @@
1
+ name: ✨ 功能请求 / Feature Request
2
+ description: 建议一个新功能或改进 / Suggest a new feature or improvement
3
+ labels:
4
+ - "type: feature"
5
+ - "status: waiting-for-internal-feedback"
6
+ type: Feature
7
+ body:
8
+ - type: markdown
9
+ attributes:
10
+ value: |
11
+ ## 感谢您的功能建议!/ Thank you for your feature suggestion!
12
+
13
+ 请详细描述您的想法,这将帮助我们更好地理解和评估您的建议。
14
+ Please describe your idea in detail to help us better understand and evaluate your suggestion.
15
+
16
+ - type: input
17
+ id: summary
18
+ attributes:
19
+ label: 功能摘要 / Feature Summary
20
+ description: |
21
+ 用一句话描述您想要的功能
22
+ Describe the feature you want in one sentence
23
+ placeholder: |
24
+ 例如:支持自动检测并应用最佳配置
25
+ Example: Support automatic detection and application of optimal configuration
26
+ validations:
27
+ required: true
28
+
29
+ - type: dropdown
30
+ id: feature-type
31
+ attributes:
32
+ label: 功能类型 / Feature Type
33
+ description: |
34
+ 这是什么类型的功能请求?
35
+ What type of feature request is this?
36
+ options:
37
+ - 全新功能 / New Feature
38
+ - 用户体验改进 / UX Improvement
39
+ - 性能优化 / Performance Optimization
40
+ - "API改进 / API Enhancement"
41
+ - 文档改进 / Documentation Improvement
42
+ - 安全性增强 / Security Enhancement
43
+ - 工具集成 / Tooling Integration
44
+ - 其他 / Other
45
+ validations:
46
+ required: true
47
+
48
+ - type: dropdown
49
+ id: priority
50
+ attributes:
51
+ label: 优先级 / Priority
52
+ description: |
53
+ 您认为这个功能的重要程度如何?
54
+ How important do you think this feature is?
55
+ options:
56
+ - 高 - 非常需要这个功能 / High - Really need this feature
57
+ - 中 - 有了更好 / Medium - Would be nice to have
58
+ - 低 - 可有可无 / Low - Optional
59
+ validations:
60
+ required: true
61
+
62
+ - type: textarea
63
+ id: problem
64
+ attributes:
65
+ label: 问题描述 / Problem Description
66
+ description: |
67
+ 这个功能要解决什么问题?为什么需要这个功能?
68
+ What problem does this feature solve? Why is this feature needed?
69
+ placeholder: |
70
+ 我遇到的问题是... / The problem I encountered is...
71
+
72
+ 例如 / Example:
73
+ - 当前需要手动执行的操作太多,希望能自动化
74
+ - Currently too many manual operations are required, hoping to automate them
75
+ validations:
76
+ required: true
77
+
78
+ - type: textarea
79
+ id: solution
80
+ attributes:
81
+ label: 建议的解决方案 / Proposed Solution
82
+ description: |
83
+ 您希望如何解决这个问题?详细描述您设想的功能。
84
+ How would you like to solve this problem? Describe the feature you envision in detail.
85
+ placeholder: |
86
+ 我认为可以通过...来解决 / I think this can be solved by...
87
+
88
+ 例如 / Example:
89
+ - 添加一个配置选项来控制自动化行为
90
+ - Add a configuration option to control automated behavior
91
+ validations:
92
+ required: true
93
+
94
+ - type: textarea
95
+ id: alternatives
96
+ attributes:
97
+ label: 替代方案 / Alternative Solutions
98
+ description: |
99
+ 您考虑过其他解决方案吗?
100
+ Have you considered any alternative solutions?
101
+ placeholder: |
102
+ 我也考虑过... / I also considered...
103
+
104
+ 例如 / Example:
105
+ - 使用外部工具来实现类似功能
106
+ - Using external tools to achieve similar functionality
107
+
108
+ - type: checkboxes
109
+ id: confirmations
110
+ attributes:
111
+ label: 确认事项 / Confirmations
112
+ description: |
113
+ 提交前请确认以下事项
114
+ Please confirm the following before submitting
115
+ options:
116
+ - label: |
117
+ 我已经搜索了现有的 issues 和讨论,确认这不是重复建议
118
+ I have searched existing issues and discussions, confirming this is not a duplicate suggestion
119
+ required: true
120
+ - label: |
121
+ 这个功能符合项目的目标和范围
122
+ This feature aligns with the project's goals and scope
123
+ required: true
124
+ - label: |
125
+ 我理解这个功能可能需要时间来实现
126
+ I understand this feature may take time to implement
127
+ required: true
128
+ - label: |
129
+ 我愿意协助实现这个功能 (可选)
130
+ I'm willing to help implement this feature (optional)
131
+ required: false
@@ -0,0 +1,165 @@
1
+ name: 📚 文档问题 / Documentation Issue
2
+ description: 报告文档中的错误、缺失或改进建议 / Report documentation errors, missing content, or improvement suggestions
3
+ labels:
4
+ - "type: documentation"
5
+ - "status: waiting-for-triage"
6
+ type: Task
7
+ body:
8
+ - type: markdown
9
+ attributes:
10
+ value: |
11
+ ## 感谢您帮助改进文档!/ Thank you for helping improve the documentation!
12
+
13
+ 好的文档对项目至关重要。请详细描述文档问题,帮助我们提供更好的文档体验。
14
+ Good documentation is crucial for the project. Please describe the documentation issue in detail to help us provide a better documentation experience.
15
+
16
+ - type: input
17
+ id: summary
18
+ attributes:
19
+ label: 问题摘要 / Issue Summary
20
+ description: 用一句话简要描述文档问题 / Briefly describe the documentation issue in one sentence
21
+ placeholder: |
22
+ 例如:API文档中缺少某个配置参数说明
23
+ Example: Missing configuration parameter description in API documentation
24
+ validations:
25
+ required: true
26
+
27
+ - type: dropdown
28
+ id: doc-type
29
+ attributes:
30
+ label: 文档类型 / Documentation Type
31
+ description: 这个问题涉及哪种类型的文档?/ Which type of documentation does this issue involve?
32
+ options:
33
+ - "README文件 / README file"
34
+ - "API文档 / API Documentation"
35
+ - "安装指南 / Installation Guide"
36
+ - "使用教程 / Usage Tutorial"
37
+ - "配置说明 / Configuration Guide"
38
+ - "故障排除 / Troubleshooting"
39
+ - "贡献指南 / Contributing Guide"
40
+ - "更新日志 / Changelog"
41
+ - "代码注释 / Code Comments"
42
+ - "其他 (请在下方说明) / Other (please specify below)"
43
+ validations:
44
+ required: true
45
+
46
+ - type: dropdown
47
+ id: issue-type
48
+ attributes:
49
+ label: 问题类型 / Issue Type
50
+ description: 这是什么类型的文档问题?/ What type of documentation issue is this?
51
+ options:
52
+ - "内容错误 / Content Error"
53
+ - "信息缺失 / Missing Information"
54
+ - "过时内容 / Outdated Content"
55
+ - "格式问题 / Formatting Issue"
56
+ - "链接失效 / Broken Link"
57
+ - "翻译问题 / Translation Issue"
58
+ - "结构改进 / Structure Improvement"
59
+ - "示例代码问题 / Example Code Issue"
60
+ - "其他 / Other"
61
+ validations:
62
+ required: true
63
+
64
+ - type: input
65
+ id: location
66
+ attributes:
67
+ label: 文档位置 / Document Location
68
+ description: |
69
+ 请提供具体的文档位置信息
70
+ Please provide specific document location information
71
+ placeholder: |
72
+ 例如:docs/api.md 第15行,或者 README.md 的"安装"部分
73
+ Example: Line 15 in docs/api.md, or "Installation" section in README.md
74
+ validations:
75
+ required: true
76
+
77
+ - type: textarea
78
+ id: current-content
79
+ attributes:
80
+ label: 当前内容 / Current Content
81
+ description: |
82
+ 复制粘贴当前有问题的文档内容(如果适用)
83
+ Copy and paste the current problematic documentation content (if applicable)
84
+ placeholder: |
85
+ 请粘贴当前的文档内容...
86
+ Please paste the current documentation content...
87
+ render: markdown
88
+
89
+ - type: textarea
90
+ id: issue-description
91
+ attributes:
92
+ label: 问题描述 / Issue Description
93
+ description: |
94
+ 详细描述文档问题
95
+ Describe the documentation issue in detail
96
+ placeholder: |
97
+ 详细说明问题所在... / Explain the issue in detail...
98
+
99
+ 例如 / Example:
100
+ - 这段文档与实际功能不符
101
+ - This documentation doesn't match the actual functionality
102
+ - 缺少必要的参数说明
103
+ - Missing necessary parameter descriptions
104
+ validations:
105
+ required: true
106
+
107
+ - type: textarea
108
+ id: suggested-content
109
+ attributes:
110
+ label: 建议的内容 / Suggested Content
111
+ description: |
112
+ 如果您有改进建议,请提供修正后的内容
113
+ If you have improvement suggestions, please provide the corrected content
114
+ placeholder: |
115
+ 建议的文档内容... / Suggested documentation content...
116
+ render: markdown
117
+
118
+ - type: textarea
119
+ id: impact
120
+ attributes:
121
+ label: 影响范围 / Impact
122
+ description: |
123
+ 这个文档问题对用户有什么影响?
124
+ What impact does this documentation issue have on users?
125
+ placeholder: |
126
+ 这个问题可能导致... / This issue might cause...
127
+
128
+ 例如 / Example:
129
+ - 用户无法正确配置项目
130
+ - Users cannot configure the project correctly
131
+ - 开发者集成时遇到困难
132
+ - Developers encounter difficulties during integration
133
+
134
+ - type: textarea
135
+ id: additional-context
136
+ attributes:
137
+ label: 额外信息 / Additional Context
138
+ description: |
139
+ 添加任何其他有助于改进文档的信息,如截图、相关链接等
140
+ Add any other information that might help improve the documentation, such as screenshots, related links, etc.
141
+
142
+ - type: checkboxes
143
+ id: confirmations
144
+ attributes:
145
+ label: 确认事项 / Confirmations
146
+ description: |
147
+ 提交前请确认以下事项
148
+ Please confirm the following before submitting
149
+ options:
150
+ - label: |
151
+ 我已经搜索了现有的文档相关issues,确认这不是重复问题
152
+ I have searched existing documentation-related issues and confirmed this is not a duplicate
153
+ required: true
154
+ - label: |
155
+ 我已经仔细阅读了相关的文档内容
156
+ I have carefully read the relevant documentation content
157
+ required: true
158
+ - label: |
159
+ 我提供的信息准确完整
160
+ The information I provided is accurate and complete
161
+ required: true
162
+ - label: |
163
+ 我愿意协助改进文档内容 (可选)
164
+ I'm willing to help improve the documentation content (optional)
165
+ required: false
@@ -0,0 +1,147 @@
1
+ name: 🔧 其他问题 / Other Issues
2
+ description: 报告不属于上述分类的其他问题或建议 / Report other issues or suggestions that don't fit the above categories
3
+ labels:
4
+ - "status: waiting-for-triage"
5
+ type: Task
6
+ body:
7
+ - type: markdown
8
+ attributes:
9
+ value: |
10
+ ## 提交其他类型的问题 / Submit Other Types of Issues
11
+
12
+ 如果您的问题不属于问题报告、问题咨询、功能请求或文档问题,请使用此模板。
13
+ If your issue doesn't belong to bug reports, questions, feature requests or documentation issues, please use this template.
14
+
15
+ **在提交前,请确认您的问题确实不属于以下类别:**
16
+ **Before submitting, please confirm your issue doesn't belong to the following categories:**
17
+ - 🐛 [问题报告 / Bug Report](./issues/new?template=01_bug_report.yml) - 项目功能错误
18
+ - ❓ [问题咨询 / Question](./issues/new?template=02_question.yml) - 使用相关问题
19
+ - ✨ [功能请求 / Feature Request](./issues/new?template=03_feature_request.yml) - 新功能建议
20
+ - 📚 [文档问题 / Documentation](./issues/new?template=04_documentation.yml) - 文档相关问题
21
+
22
+ - type: input
23
+ id: summary
24
+ attributes:
25
+ label: 问题摘要 / Issue Summary
26
+ description: 用一句话简要描述您的问题或建议 / Briefly describe your issue or suggestion in one sentence
27
+ placeholder: |
28
+ 例如:建议添加 GitHub Actions CI/CD 工作流
29
+ Example: Suggest adding GitHub Actions CI/CD workflow
30
+ validations:
31
+ required: true
32
+
33
+ - type: dropdown
34
+ id: category
35
+ attributes:
36
+ label: 问题类别 / Issue Category
37
+ description: 请选择最接近的问题类别 / Please select the closest issue category
38
+ options:
39
+ - "项目管理 / Project Management"
40
+ - "开发工具 / Development Tools"
41
+ - "CI/CD相关 / CI/CD Related"
42
+ - "安全相关 / Security Related"
43
+ - "许可证问题 / License Issues"
44
+ - "社区建议 / Community Suggestions"
45
+ - "第三方集成 / Third-party Integration"
46
+ - "环境配置 / Environment Setup"
47
+ - "版本发布 / Release Management"
48
+ - "其他 (请在描述中说明) / Other (please specify in description)"
49
+ validations:
50
+ required: true
51
+
52
+ - type: dropdown
53
+ id: priority
54
+ attributes:
55
+ label: 优先级 / Priority
56
+ description: 您认为这个问题的重要程度如何?/ How important do you think this issue is?
57
+ options:
58
+ - "高 - 影响项目正常运行 / High - Affects normal project operation"
59
+ - "中 - 有一定影响 / Medium - Has some impact"
60
+ - "低 - 优化改进建议 / Low - Optimization/improvement suggestion"
61
+ validations:
62
+ required: true
63
+
64
+ - type: textarea
65
+ id: description
66
+ attributes:
67
+ label: 详细描述 / Detailed Description
68
+ description: |
69
+ 详细描述您的问题、建议或需求
70
+ Describe your issue, suggestion, or requirement in detail
71
+ placeholder: |
72
+ 请详细说明... / Please explain in detail...
73
+
74
+ 包括但不限于 / Including but not limited to:
75
+ - 问题的背景和原因 / Background and reasons for the issue
76
+ - 具体的需求或建议 / Specific requirements or suggestions
77
+ - 对项目的影响 / Impact on the project
78
+ - 您认为的解决方案 / Your proposed solution
79
+ validations:
80
+ required: true
81
+
82
+ - type: textarea
83
+ id: context
84
+ attributes:
85
+ label: 相关背景 / Related Context
86
+ description: |
87
+ 提供任何相关的背景信息
88
+ Provide any relevant background information
89
+ placeholder: |
90
+ 相关信息... / Related information...
91
+
92
+ 例如 / Example:
93
+ - 相关的外部工具或服务 / Related external tools or services
94
+ - 类似项目的实现方式 / Implementation approaches in similar projects
95
+ - 相关的讨论或文章链接 / Links to relevant discussions or articles
96
+
97
+ - type: textarea
98
+ id: impact
99
+ attributes:
100
+ label: 影响评估 / Impact Assessment
101
+ description: |
102
+ 这个问题或建议会对项目产生什么影响?
103
+ What impact would this issue or suggestion have on the project?
104
+ placeholder: |
105
+ 可能的影响... / Potential impacts...
106
+
107
+ 例如 / Example:
108
+ - 对开发流程的影响 / Impact on development workflow
109
+ - 对用户体验的影响 / Impact on user experience
110
+ - 对项目维护的影响 / Impact on project maintenance
111
+
112
+ - type: textarea
113
+ id: additional-info
114
+ attributes:
115
+ label: 补充信息 / Additional Information
116
+ description: |
117
+ 添加任何其他有用的信息,如截图、链接、参考资料等
118
+ Add any other useful information such as screenshots, links, references, etc.
119
+
120
+ - type: checkboxes
121
+ id: confirmations
122
+ attributes:
123
+ label: 确认事项 / Confirmations
124
+ description: |
125
+ 提交前请确认以下事项
126
+ Please confirm the following before submitting
127
+ options:
128
+ - label: |
129
+ 我已经确认这个问题不属于Bug报告、功能请求、问题咨询或文档问题
130
+ I have confirmed this issue doesn't belong to bug reports, feature requests, questions, or documentation issues
131
+ required: true
132
+ - label: |
133
+ 我已经搜索了现有的issues,确认这不是重复问题
134
+ I have searched existing issues and confirmed this is not a duplicate
135
+ required: true
136
+ - label: |
137
+ 我提供的信息清晰准确
138
+ The information I provided is clear and accurate
139
+ required: true
140
+ - label: |
141
+ 我理解这类问题可能需要更多时间来评估和处理
142
+ I understand this type of issue may require more time to evaluate and process
143
+ required: true
144
+ - label: |
145
+ 我愿意提供更多信息或协助解决 (可选)
146
+ I'm willing to provide more information or help resolve the issue (optional)
147
+ required: false
@@ -0,0 +1,11 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: 📖 项目文档 / Project Documentation
4
+ url: https://github.com/{{org}}/{{project}}/wiki
5
+ about: 查看项目文档和使用指南 / View project documentation and usage guides
6
+ - name: 💬 讨论区 / Discussions
7
+ url: https://github.com/{{org}}/{{project}}/discussions
8
+ about: 加入社区讨论,分享想法和经验 / Join community discussions, share ideas and experiences
9
+ - name: 🆘 获取帮助 / Get Help
10
+ url: https://github.com/{{org}}/{{project}}/discussions/categories/q-a
11
+ about: 在Q&A区域获取使用帮助 / Get usage help in the Q&A section
@@ -0,0 +1,123 @@
1
+ <!--
2
+ 如果您正在寻求帮助,请先在我们的讨论区中进行交流。
3
+ If you're looking for help, please check our Discussions section first.
4
+
5
+ 我们鼓励使用英文,如果不能直接使用,可以使用翻译软件,您仍旧可以保留中文原文。
6
+ Please try to use English to describe your issue, or at least provide a snippet of English translation.
7
+
8
+ 请不要在没有创建 Issue 的情况下创建 Pull Request。
9
+ Please do not create a Pull Request without creating an issue first.
10
+
11
+ 微小的变更(如错别字修复)不需要创建 Issue。
12
+ Trivial changes like typos do not require a Github issue.
13
+
14
+ 提交 PR 之前请务必先阅读我们的贡献指南。
15
+ Please read our Contributing Guide(CONTRIBUTING.md) before submitting your Pull Request.
16
+
17
+ ⚠️ 注意 / Note:
18
+
19
+ 不要重复创建类似的 PR,当你发现需要调整一个 PR 的时候,优先选择编辑修改它,而不是关闭之后再创建一个。
20
+ Do not create a Pull Request without creating an issue first.
21
+ -->
22
+
23
+ ## 🔗 相关问题 / Related Issue
24
+
25
+ <!-- 请先创建 Issue 讨论,然后在这里链接 -->
26
+ <!-- Please create an issue for discussion first, then link it here -->
27
+
28
+ **Issue 链接 / Issue Link:** <mark>#{$IssueNumber}</mark> 👈👈
29
+
30
+ <!-- 请修改 {$IssueNumber} 为真实的编号。 -->
31
+ <!-- Please update {$IssueNumber} to an actual number. -->
32
+
33
+ - [ ] 我已经创建了相关 Issue 并进行了讨论 / I have created and discussed the related issue
34
+ - [ ] 这是一个微小的修改(如错别字),不需要 Issue / This is a trivial change (like typo fix) that doesn't need an issue
35
+
36
+ ## 📋 变更类型 / Type of Change
37
+
38
+ - [ ] 🐛 Bug 修复 / Bug fix (non-breaking change which fixes an issue)
39
+ - [ ] ✨ 新功能 / New feature (non-breaking change which adds functionality)
40
+ - [ ] 💥 破坏性变更 / Breaking change (fix or feature that would cause existing functionality to not work as expected)
41
+ - [ ] 📚 文档更新 / Documentation update
42
+ - [ ] 🔧 重构 / Refactoring (no functional changes)
43
+ - [ ] ⚡ 性能优化 / Performance improvement
44
+ - [ ] 📦 依赖升级 / Dependency upgrade (update dependencies to newer versions)
45
+ - [ ] 🚀 功能增强 / Feature enhancement (improve existing functionality without breaking changes)
46
+ - [ ] 🧹 代码清理 / Code cleanup
47
+
48
+ ## 📝 变更目的 / Purpose of the Change
49
+
50
+ <!-- 详细描述这个变更的目的和必要性 -->
51
+ <!-- Detailed description of the purpose and necessity of this change -->
52
+
53
+ ## 📋 主要变更 / Brief Changelog
54
+
55
+ <!-- 列出主要的变更内容 -->
56
+ <!-- List the main changes -->
57
+
58
+ -
59
+ -
60
+ -
61
+
62
+ ## 🧪 验证变更 / Verifying this Change
63
+
64
+ <!-- 描述如何验证这个变更是正确的 -->
65
+ <!-- Describe how to verify that this change is correct -->
66
+
67
+ ### 测试步骤 / Test Steps
68
+
69
+ 1.
70
+ 2.
71
+ 3.
72
+
73
+ ### 测试覆盖 / Test Coverage
74
+
75
+ - [ ] 我已经添加了单元测试 / I have added unit tests
76
+ - [ ] 所有现有测试都通过 / All existing tests pass
77
+ - [ ] 我已经进行了手动测试 / I have performed manual testing
78
+
79
+ ## 📸 截图 / Screenshots
80
+
81
+ <!-- 如果适用,请添加截图来展示变更效果 -->
82
+ <!-- If applicable, add screenshots to demonstrate the changes -->
83
+
84
+ ## ✅ 贡献者检查清单 / Contributor Checklist
85
+
86
+ 请确保你的 Pull Request 符合以下要求 / Please ensure your Pull Request meets the following requirements:
87
+
88
+ **基本要求 / Basic Requirements:**
89
+
90
+ - [ ] 确保有 GitHub Issue 对应这个变更(微小变更如错别字除外)/ Make sure there is a Github issue filed for the change (trivial changes like typos excluded)
91
+ - [ ] 你的 Pull Request 只解决一个 Issue,没有包含其他不相关的变更 / Your PR addresses just this issue, without pulling in other changes - one PR resolves one issue
92
+ - [ ] PR 中的每个 commit 都有有意义的主题行和描述 / Each commit in the PR has a meaningful subject line and body
93
+
94
+ **代码质量 / Code Quality:**
95
+
96
+ - [ ] 我的代码遵循项目的代码规范 / My code follows the project's coding standards
97
+ - [ ] 我已经进行了自我代码审查 / I have performed a self-review of my code
98
+ - [ ] 我已经为复杂的代码添加了必要的注释 / I have commented my code, particularly in hard-to-understand areas
99
+
100
+ **测试要求 / Testing Requirements:**
101
+
102
+ - [ ] 我已经编写了必要的单元测试来验证逻辑正确性 / I have written necessary unit-tests to verify the logic correction
103
+ - [ ] 当存在跨模块依赖时,我尽量使用了 mock / I have used mocks when cross-module dependencies exist
104
+ - [ ] 代码检查通过 / Lint checks pass
105
+ - [ ] 单元测试通过 / Unit tests pass
106
+
107
+ **文档和兼容性 / Documentation and Compatibility:**
108
+
109
+ - [ ] 我已经更新了相应的文档 / I have made corresponding changes to the documentation
110
+ - [ ] 如果有破坏性变更,我已经在 PR 描述中详细说明 / If there are breaking changes, I have documented them in detail
111
+ - [ ] 我已经考虑了向后兼容性 / I have considered backward compatibility
112
+
113
+ ## 📋 附加信息 / Additional Notes
114
+
115
+ <!-- 任何其他相关信息,如已知问题、后续计划等 -->
116
+ <!-- Any other relevant information, such as known issues, future plans, etc. -->
117
+
118
+ ---
119
+
120
+ **审查者注意事项 / Reviewer Notes:**
121
+
122
+ <!-- 为审查者提供的特殊说明或需要重点关注的地方 -->
123
+ <!-- Special instructions for reviewers or areas that need special attention -->
@@ -0,0 +1,17 @@
1
+ version: 2
2
+ updates:
3
+ # TODO: add your project's package ecosystem (npm, pip, maven, gradle, etc.)
4
+ # - package-ecosystem: "npm"
5
+ # directory: "/"
6
+ # schedule:
7
+ # interval: "weekly"
8
+ # labels:
9
+ # - "dependencies"
10
+ # open-pull-requests-limit: 10
11
+
12
+ - package-ecosystem: "github-actions"
13
+ directory: "/"
14
+ schedule:
15
+ interval: "weekly"
16
+ labels:
17
+ - "dependencies"
@@ -0,0 +1,25 @@
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ echo "UTF-8 check script is running..."
5
+
6
+ # Iterate over every file that is in the staging area
7
+ for FILE in $(git diff --cached --name-only); do
8
+ # If file exists
9
+ # shellcheck disable=SC2039
10
+ if [[ -e "$FILE" ]]; then
11
+ if [[ $(file -bi "$FILE") != *"charset=binary"* ]]; then
12
+ # Get file encoding
13
+ encoding=$(file -bi "$FILE" | sed -e 's/.*[ ]charset=//')
14
+ echo "Checking file $FILE (encoding: $encoding)"
15
+
16
+ # If encoding is not utf-8 or us-ascii, exit with failure status
17
+ if ! echo "$encoding" | grep -q -e 'utf-8' -e 'us-ascii'; then
18
+ echo "Error: File $FILE is not UTF-8 encoded or US-ASCII, it is $encoding. Please convert it to UTF-8."
19
+ exit 1
20
+ fi
21
+ fi
22
+ fi
23
+ done
24
+
25
+ echo "UTF-8 check completed successfully."
@@ -0,0 +1,27 @@
1
+ changelog:
2
+ exclude:
3
+ labels:
4
+ - skip-changelog
5
+ authors:
6
+ - dependabot
7
+ categories:
8
+ - title: "⚠️ Breaking Changes"
9
+ labels:
10
+ - breaking
11
+ - title: "✨ Enhancement"
12
+ labels:
13
+ - enhancement
14
+ - feature
15
+ - title: "🐛 Bug Fixes"
16
+ labels:
17
+ - bug
18
+ - fix
19
+ - title: "📚 Documentation"
20
+ labels:
21
+ - documentation
22
+ - title: "📦 Dependencies"
23
+ labels:
24
+ - dependencies
25
+ - title: "Other Changes"
26
+ labels:
27
+ - "*"