Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Community Specification: `coc_policy='org'` is not in the `csl_coc_policy` vocabulary

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

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
python

调研方向

Read framework-design.md section 7.8 and the csl_coc_policy definition in community-spec.toml, then compare the accepted values with the tool description, templates/csl_notices.tmpl, scripts/csl_onboard.py, and docs/CSL_ONBOARDING.md. Decide which vocabulary to use and make the listed sources agree. Add the proposed test verifying every value accepted by the tool appears in the key's values; done means that test passes.

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

描述

quality

remediate_community_spec and its tool description tell agents to pass coc_policy='org' (with coc_reference) when a project already has a Code of Conduct, and templates/csl_notices.tmpl branches on context.csl_coc_policy == 'org'. The context definition in community-spec.toml declares [context.csl_coc_policy] as an enum with values = ["csl", "umbrella"].

Since feature 042 each key has one vocabulary (framework-design.md 7.8), and confirm_project_data accepts only a key's values. So:

  • A person cannot confirm csl_coc_policy = "org" through confirm_project_data, so a confirmed value can never select the org branch; only an explicit tool parameter can.
  • get_pending_data lists csl and umbrella as the only choices, while the tool text and scripts/csl_onboard.py --coc-policy offer org.

Proposed fix: decide the vocabulary once (either add org to values with a prompt/hint that describes it, or map org onto umbrella everywhere), then make the TOML, the template, the tool description and validation, scripts/csl_onboard.py, and docs/CSL_ONBOARDING.md agree. Add a test that every value the tool accepts is in the key's values.

主要语言
Python
星标
22
派生
27
平均合并
2 天 5 分钟
30 天内合并 PR
50

环境准备

从这里开始

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

darnitdevorg/darnit 的其他 Issue

查看 darnitdevorg/darnit 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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