From d371dc1ed51ef9bebe2f04fca17610696624675e Mon Sep 17 00:00:00 2001 From: fish <1770968958@qq.com> Date: Fri, 20 Nov 2026 01:44:36 +0900 Subject: [PATCH] chore(github): add bilingual issue forms and focused PR template --- .github/ISSUE_TEMPLATE/bug_report.yml | 43 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 5 +++ .github/ISSUE_TEMPLATE/feature_request.yml | 30 +++++++++++++++ .github/pull_request_template.md | 27 ++++++++++++++ 4 files changed, 105 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml create mode 100644 .github/pull_request_template.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..e038542 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -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. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..50317c3 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -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 diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..31b561c --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -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. diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..7ce4859 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,27 @@ + + +## 改动说明 / Summary + + + +## 影响范围 / 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