worktree: convert module vars to the | default form so consumer overrides take effect
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 76/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- tooling
Hướng nghiên cứu
Read src/taskfile-include-worktree.yaml alongside the module conventions in CLAUDE.md, then inspect the existing mkdocs defaults and tests/worktree-selftest.sh. Add a consumer wrapper that passes an override at the includes: site and confirms it takes effect; update the README note. Done when all five variables use self-contained defaults, the self-test passes, and the documentation reflects the change.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
src/taskfile-include-worktree.yaml declares WORKTREE_ROOT_DEFAULT, WORKTREE_BASE_REF, WORKTREE_FETCH_REMOTE, WORKTREE_FETCH_BRANCH and WORKTREE_ALLOWED_PREFIXES as plain literals (e.g. line 17: WORKTREE_ALLOWED_PREFIXES: "feat fix chore docs exp"). Per the module conventions in CLAUDE.md, a plain literal in a module's own vars: wins over the value a consumer passes at the includes: site, so every documented override (README variables table, docs/*/references/modules/worktree.md override example with WORKTREE_BASE_REF: "origin/main") is silently ignored.
Found in the member verification pass of group 2026-11-05-worktree-add-hardening (#53/#54): following the docs and passing WORKTREE_ALLOWED_PREFIXES: "wip" at the include site, task worktree:add -- wip/x still fails with lacks an allowed prefix (feat fix chore docs exp).
Ask
- Convert each var to
'{{.NAME | default "<literal>"}}'with self-contained literal defaults (no derivation from another var in the block), asmkdocsalready does. - Extend
tests/worktree-selftest.shwith a consumer-wrapper case that overrides a var at theincludes:site and asserts it takes effect (the self-test already resolves the prefix list through Task, so it survives the conversion). - Note that an exported environment variable of the same name then reaches the default too (the self-test already unsets
WORKTREE_*). - Update README's "Today
mkdocsalone uses that form" note.
- Ngôn ngữ chính
- Shell
- Star
- 0
- Fork
- 0
- Merge trung bình
- 11 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nolte/taskfiles
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
documentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
worktree:add: quote CLI args and derive repo name from the fetch remoteCó thể đã có người làm @nolte đã nhận 11 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 67/100
-
worktree: harden the add prefix check and widen the self-testCó thể đã có người làm @nolte đã nhận 11 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
Tất cả issue của nolte/taskfiles
Issue tương tự
-
Needs-Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
PowerShell/PowerShell#28432 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nolte/kamerplanter-appliance#32 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Automat etapu B+C rozstrzyga „w przebiegu” po nazwie katalogu z issue karty, nie po KATALOGIĐang mởresearch
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
slayerlabs/benchmarks-fabryka-ai#256 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100