feat(create): add require-description config option (GH#596)

Add create.require-description config option that enforces descriptions
when creating issues. When enabled, bd create will error if no
description is provided (except for test issues).

- Config in .beads/config.yaml or ~/.config/bd/config.yaml
- Also supports BD_CREATE_REQUIRE_DESCRIPTION env var
- Default: false (preserves current behavior with warning)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-20 02:38:00 -08:00
parent 8e8301a016
commit b4bc682d93
3 changed files with 20 additions and 6 deletions

View File

@@ -109,6 +109,9 @@ func Initialize() error {
// Push configuration defaults
v.SetDefault("no-push", false)
// Create command defaults
v.SetDefault("create.require-description", false)
// Read config file if it was found
if configFileSet {
if err := v.ReadInConfig(); err != nil {