Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#522 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Python
Stelle
22
Fork
27
Merge medio
1g 19h
PR unite (30g)
39

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di darnitdevorg/darnit

Tutte le issue di darnitdevorg/darnit

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.