From 793c4c56d8aa068c8ee1dc372caf660e769d3e29 Mon Sep 17 00:00:00 2001 From: yunyingk Date: Tue, 27 Oct 2026 10:56:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(infra):=20=E7=BB=9F=E4=B8=80=20GitHub=20PR?= =?UTF-8?q?=20=E4=B8=8E=20Issue=20=E6=A8=A1=E6=9D=BF=E4=B8=BA=E7=AE=80?= =?UTF-8?q?=E4=BD=93=E4=B8=AD=E6=96=87=E6=A0=87=E5=87=86=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 对齐来自 hose-sealai-bridge 的 GitHub 社区交互模板标准 - 重构 .github/pull_request_template.md: - 增加统一简体中文语言规范提醒 - 规范变更分类、影响范围模块划分及质量验证清单 - 重构 .github/ISSUE_TEMPLATE/feature_request.yml: - 规范化功能建议标题前缀 [需求建议]: 与简体中文提示 - 增加业务场景与期望实现方案的结构化收集 - 重构 .github/ISSUE_TEMPLATE/bug_report.yml: - 规范化缺陷反馈标题前缀 [缺陷反馈]: 与简体中文提示 - 增加运行形态(CLI/MCP/Skill/脚本)及敏感信息脱敏指引 - 更新 .github/ISSUE_TEMPLATE/config.yml 官方指引说明 --- .github/ISSUE_TEMPLATE/bug_report.yml | 60 +++++++++++++++------- .github/ISSUE_TEMPLATE/config.yml | 4 +- .github/ISSUE_TEMPLATE/feature_request.yml | 42 ++++++++++----- .github/pull_request_template.md | 38 ++++++++++---- 4 files changed, 100 insertions(+), 44 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 036cc08..9a3d5de 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -1,59 +1,83 @@ -name: 🐛 Bug Report -description: Report a bug or unintended behavior in seal-use CLI or MCP server +name: 🐛 缺陷反馈 (Bug Report) +description: 反馈 seal-use CLI 或 MCP 服务运行中的异常、报错或非预期行为 +title: "[缺陷反馈]: " labels: ["bug"] body: - type: markdown attributes: value: | - Thanks for taking the time to report this issue! Please provide as much detail as possible. + ### 感谢反馈缺陷 + 感谢抽出宝贵时间反馈问题!请尽可能提供详细的环境信息与复现步骤。 + > **语言规范提醒**:本仓库统一使用**简体中文**进行缺陷反馈与技术排查。 + - type: input id: version attributes: - label: seal-use Version - description: What version of seal-use are you using? (Run `seal-use version`) - placeholder: "e.g. 0.9.5" + label: seal-use 版本 + description: 您正在使用的 seal-use 版本号(可运行 `seal-use version` 或 `bun run cli version` 查询) + placeholder: "例如:0.11.16" validations: required: true + - type: dropdown id: os attributes: - label: Operating System & Architecture + label: 运行操作系统与架构 options: - macOS (Apple Silicon / arm64) - macOS (Intel / x64) - Linux (x64) - Linux (arm64) - Windows (x64) - - Source (bun / node) + - Windows WSL2 (Ubuntu) + - 源码开发模式 (Bun / Node) validations: required: true + + - type: dropdown + id: mode + attributes: + label: 运行形态 + options: + - CLI 命令行 (seal-use ...) + - MCP 服务模式 (seal-use mcp / Claude Desktop / Cursor) + - Agent Skill 自动触发 (~/.agents/skills/seal-use) + - 研发脚本或本地探针 (bun run probe 等) + validations: + required: true + - type: textarea id: description attributes: - label: Description - description: A clear and concise description of what the bug is. + label: 缺陷描述 + description: 请清晰、简要地描述遇到的具体异常或错误现象。 validations: required: true + - type: textarea id: reproduction attributes: - label: Steps to Reproduce - description: Exact command line or MCP tool call that triggers the issue. + label: 复现步骤 + description: 请提供能触发该异常的完整命令行输入、参数或 MCP 工具调用入参(请务必脱敏 Enterprise 凭据与真实 Token)。 placeholder: | - 1. Run `seal-use ...` - 2. See error ... + 1. 执行 `seal-use ...` + 2. 返回报错 ... validations: required: true + - type: textarea id: expected attributes: - label: Expected Behavior - description: A clear and concise description of what you expected to happen. + label: 预期行为 + description: 请描述您预期系统应当如何正常响应或输出。 validations: required: false + - type: textarea id: logs attributes: - label: Relevant Log Output or Screenshots - description: Please copy and paste any relevant log output or stack traces (redact enterprise secrets/tokens). + label: 终端输出与错误日志 (Logs / Stderr) + description: 请粘贴完整的终端报错日志或调用堆栈(已脱敏敏感信息)。 render: shell + validations: + required: false diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index bd2449f..99f891a 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -1,5 +1,5 @@ blank_issues_enabled: false contact_links: - - name: 📖 Documentation & Skill Guide + - name: 📖 官方文档与 Skill 指引 url: https://github.com/yunyingk/seal-use/blob/main/skills/seal-use/SKILL.md - about: Read the official documentation and agent skill manual for seal-use. + about: 查阅 seal-use 完整使用手册、CLI 命令与 Agent Skill 规范。 diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index d901f2d..fc8e6a9 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -1,31 +1,47 @@ -name: 💡 Feature Request -description: Propose a new feature, CLI command, or improvement for seal-use +name: 💡 功能建议 (Feature Request) +description: 为 seal-use 提出新的功能建议、CLI 命令或优化方案 +title: "[需求建议]: " labels: ["enhancement"] body: - type: markdown attributes: value: | - Thanks for suggesting an improvement for seal-use! + ### 欢迎提出功能建议 + 感谢为 **seal-use** 贡献想法与改进建议! + > **语言规范提醒**:本仓库统一使用**简体中文**进行需求交流与技术讨论。 + - type: textarea - id: feature-description + id: summary attributes: - label: Feature Description - description: A clear and concise description of what feature or capability you would like to see added. + label: 功能建议概述 + description: 请用简洁清晰的简体中文概述该功能建议或期望改进点。 + placeholder: 例如:希望 seal-use corps list 支持按拼音首字母过滤... validations: required: true + - type: textarea - id: use-case + id: context attributes: - label: Use Case & Motivation - description: Explain why this feature is useful and what problem it solves in enterprise workflow automation. + label: 业务背景与使用场景 + description: 该建议在什么具体业务场景下产生?(如 Seal 审批流诊断、规则修复与仿真、Hose/合思鉴权与单据查询、材料包导出、MCP 工具等) + placeholder: 描述当前操作流程中的痛点或不便之处... validations: required: true + - type: textarea - id: proposed-solution + id: proposal attributes: - label: Proposed Solution or CLI Interface - description: Any specific CLI syntax, MCP tool format, or architectural ideas you have in mind. + label: 期望的实现方案或 CLI/MCP 交互设计 + description: 您期望系统如何运作?如果有具体的 CLI 命令格式、MCP 工具接口或架构思路,请在此说明。 placeholder: | - e.g. seal-use my-command --option ... + 例如:seal-use my-command --option ... + validations: + required: false + + - type: textarea + id: additional + attributes: + label: 补充信息与参考截图 + description: 可在此附上相关的设计思路、对比、脱敏日志或额外说明。 validations: required: false diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 458a0cf..af7762b 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,19 +1,35 @@ -## 📝 Summary +## 变更说明 -Provide a concise summary of the changes made and the motivation behind them. +> **语言规范提醒**:本仓库统一使用**简体中文**进行技术交流、Commit 记录与 PR 评审,请使用简体中文填写以下内容。 -## 🔍 Changes Made +### 关联 Issue +- Fixes # +- Closes # + +### 变更背景与内容概述 + -- - -## 🧪 Verification & Testing +### 变更分类 +- [ ] 🚀 新功能 (Feature) +- [ ] 🐛 缺陷修复 (Bugfix) +- [ ] 🛠️ 工程化基建与 CI/CD (Infra/CI) +- [ ] 📝 文档补充或更新 (Docs) +- [ ] 🎨 代码风格或性能重构 (Refactor) -- [ ] `bun run check` (Type-check passed without errors) -- [ ] `bun test` (All unit tests passed) -- [ ] `bun run openapi:bundle` (OpenAPI bundles up to date) -- [ ] `bun run build:binary` (Binary build succeeds) +### 影响范围 +- [ ] CLI 命令与标准输出流 (`src/cli/`) +- [ ] 本地 MCP 服务与网关工具 (`src/server.ts`, `src/domains/*/capabilities/`) +- [ ] Seal 租户、规则与审批领域逻辑 (`src/domains/seal/`) +- [ ] Agent 规范、Skill 与治理检查 (`skills/`, `.agents/`, `scripts/governance/`) +- [ ] 核心网络通信、鉴权与配置加载 (`src/core/`) -## 📌 Related Issues / References +### 验证与测试记录 + -Fixes # +- [ ] `bun run check` (TypeScript 类型检查通过,0 错误) +- [ ] `bun run lint` (oxlint 代码检查通过,0 警告 0 错误) +- [ ] `bun run verify:agents-md` & `verify:skill-md` (文档契约与路由治理校验通过) +- [ ] `bun test` (单元测试全量通过) +- [ ] CLI / MCP 本地运行与输出流格式验证通过