Add a CODEOWNERS file (workflows, packages, agents surface)

未关闭
#1,214 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@d-oit 已经在做这个了。

开始于 2026年11月28日。

  • #1220 来自 @d-oit —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
github, github-actions, python, typescript

调研方向

Start with AGENTS.md, .github/Main Branch Protection.json, and scripts/agent-surface.py, then inspect the referenced workflows, packages, and lint configs. Add .github/CODEOWNERS for the listed paths, wire it into branch protection, and update agents-docs/GIT-WORKFLOW.md and CONTRIBUTING.md. Confirm that each required path is routed for review and that the documentation describes the new requirement.

由索引模型根据 Issue 内容生成。

描述

chore ci good first issue priority: low

Summary

The repository has no .github/CODEOWNERS. It has strong review discipline in prose (mandatory code-review-assistant review after CI, PR verification checklists, branch protection JSON), but no machine-enforced review routing.

Evidence

  • ls .github/CODEOWNERS — absent (checked).
  • High-trust areas that deserve owner review per repo rules: .github/workflows/** (guard-enforced hygiene rules), AGENTS.md + .agents/ (agent surface, scripts/agent-surface.py), biome.json/ESLint configs (AGENTS.md: "never modify without explicit approval"), packages/dks-core (single business-logic implementation), public/sw.js (offline correctness).

Impact

  • Security: code-owner review on workflow files is one of the top-8 CI supply-chain controls — every documented Actions compromise 2024–2026 ran through a gap in controls including this one.
  • Process: turns AGENTS.md's "explicit approval" rules for lint/biome config into an automatic GitHub requirement instead of a convention agents must remember.
  • Onboarding: help wanted / good first issue routing gets an actual owner.

Proposed approach

  1. Add .github/CODEOWNERS with entries for: .github/workflows/, .agents/ + AGENTS.md + CLAUDE.md/GEMINI.md/QWEN.md (generated — changes must go through scripts/agent-surface.py), packages/dks-core/, public/sw.js, biome.json, eslint.config.mjs, scripts/.
  2. Wire into the existing branch protection config (.github/Main Branch Protection.json).
  3. Update agents-docs/GIT-WORKFLOW.md and CONTRIBUTING.md to reference it.

References

主要语言
TypeScript
星标
3
派生
2
平均合并
11 小时 49 分钟
30 天内合并 PR
102

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

d-oit/do-knowledge-studio 的其他 Issue

查看 d-oit/do-knowledge-studio 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。