Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#522 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python
Lĩnh vực
documentation, tooling

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Python
Star
22
Fork
27
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
39

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của darnitdevorg/darnit

Tất cả issue của darnitdevorg/darnit

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.