chore(github): add bilingual issue forms and focused PR template

This commit is contained in:
fish
2026-11-20 01:44:36 +09:00
parent f53f27927f
commit d371dc1ed5
4 changed files with 105 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
name: Bug 反馈 / Bug Report
description: 反馈统计异常、界面显示、窗口挂载或运行报错问题 / Report a bug, UI issue, mount failure, or crash
title: "[Bug]: "
labels: ["bug"]
body:
- type: dropdown
id: environment
attributes:
label: 运行环境 / Environment
options:
- Windows - Antigravity Desktop
- Windows - IDE / CLI
- macOS - Antigravity Desktop
- macOS - IDE / CLI
- Linux - Antigravity Desktop
- Linux - IDE / CLI
- SSH 远程 / Remote SSH or Other
validations:
required: true
- type: input
id: version
attributes:
label: 插件及客户端版本 / Versions
placeholder: "例如 / e.g. usage-monitor v1.5.2, Antigravity 2.33.0, Node.js 22.x"
validations:
required: true
- type: textarea
id: description
attributes:
label: 现象描述及复现步骤 / Description & Steps to Reproduce
placeholder: |
简述发生了什么、预期行为是什么,以及如何复现。
Describe what happened, what you expected, and steps to reproduce.
validations:
required: true
- type: textarea
id: logs
attributes:
label: 报错日志或截图(可选)/ Logs or Screenshots (Optional)
description: 截图可直接拖入文本框;上传日志前请移除个人 Token 或隐私路径。 / Drag & drop screenshots here; please redact personal tokens or sensitive paths.
+5
View File
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: 使用文档 / Documentation (README)
url: https://github.com/yuhuan-dev/antigravity-usage-monitor#readme
about: 查看安装方式、功能说明及常见问题 / Installation guide, feature overview, and FAQ
@@ -0,0 +1,30 @@
name: 功能建议 / Feature Request
description: 提出新功能想法、交互体验优化或新模型适配需求 / Suggest a new feature, UX improvement, or model support
title: "[Feat]: "
labels: ["enhancement"]
body:
- type: textarea
id: problem
attributes:
label: 需求背景或痛点 / Problem or Use Case
placeholder: |
希望解决什么使用场景下的问题?
What problem or workflow does this solve?
validations:
required: true
- type: textarea
id: proposal
attributes:
label: 期望方案或效果 / Proposed Solution
placeholder: |
简述你期望的交互方式、展示内容或能力。
Describe the behavior, UI, or capability you have in mind.
validations:
required: true
- type: textarea
id: context
attributes:
label: 补充截图或参考(可选)/ Screenshots or References (Optional)
description: 可直接拖入草图、截图或相关参考链接。 / Drag & drop mockups, screenshots, or reference links.
+27
View File
@@ -0,0 +1,27 @@
<!--
提交前请注意 / Before Opening a PR:
1. 请保持 PR 聚焦、体量可控:每个 PR 只做一件明确的事,不要把几千上万行改动、大面积无关重构或多个不相关需求打包成一个巨型 PR 直接塞进来。
Keep PRs focused and reviewable: one clear goal per PR. Do not dump massive multi-thousand-line changes, sweeping unrelated refactors, or bundled features into a single PR.
2. 大型功能或架构调整请先开 Issue 对齐思路并拆分提交;未经事先沟通的超大 PR 可能会被直接关闭。
For large features or architectural changes, please open an Issue to align and split the work first; unaligned mega-PRs may be closed directly.
3. 提交者需自行理解全部改动并持续跟进 Review 反馈,不接受“提交完就不管”的 PR。
Authors must understand every change and respond to review feedback — drive-by code dumps will not be merged.
-->
## 改动说明 / Summary
<!-- 简述本次做了什么、解决了什么问题;如关联 Issue 请写 Closes #编号 -->
<!-- Briefly describe what changed and why. Link related issues with "Closes #123". -->
## 影响范围 / Scope
- [ ] 前端界面 / 样式(`sidecars/panel/src/`) / Frontend UI & styles
- [ ] 后端遥测 / 协议解析(`sidecars/panel/backend/`) / Backend telemetry & parsing
- [ ] 桌面挂载 / 跨平台兼容 / Desktop mount & cross-platform launcher
- [ ] 文档 / 价格目录 / 其他 / Docs, pricing catalog, or other
## 提交前自检 / Checklist
- [ ] **改动聚焦、体量可控**:仅聚焦单一目标,未夹带无关重构或未经沟通的巨量代码倾倒(大型改动已先开 Issue 讨论并拆分为可审阅的小 PR) / Single focused goal with a reviewable diff (no unaligned mega-PRs or unrelated refactors)
- [ ] **已自审代码并跟进评审**:已理解全部改动,并愿意响应后续 Review 调整,非“丢完即不管” / Reviewed and understood all changes and ready to follow up on review feedback
- [ ] 修改 `sidecars/panel/src/` 后,已运行 `npm --prefix sidecars/panel run build` 同步产物 / Rebuilt bundle if `sidecars/panel/src/` changed
- [ ] 已运行 `npm --prefix sidecars/panel test` 确认测试通过 / Verified tests pass via `npm --prefix sidecars/panel test`
- [ ] 保持零外部 npm 运行时依赖 / Preserved zero external npm runtime dependencies
- [ ] 涉及界面或样式改动时,已附前后对比截图 / Attached before & after screenshots for UI changes