beads/internal
Steve Yegge 0dc8452c56 feat: Respect BEADS_SYNC_BRANCH environment variable
Fixes daemon and bd sync to honor BEADS_SYNC_BRANCH environment variable
as documented in PROTECTED_BRANCHES.md for CI/CD temporary overrides.

Changes:
- Updated internal/syncbranch.Get() to prioritize env var over DB config
- Both daemon sync and bd sync CLI now use syncbranch.Get()
- Added comprehensive tests for env var override behavior
- Validates branch names using git-style rules

This enables CI/CD workflows to override sync branch per-job without
mutating database config.

Based on PR #364 by Charles P. Cross <cpdata@users.noreply.github.com>
Co-authored-by: Charles P. Cross <cpdata@users.noreply.github.com>
2025-11-22 18:17:19 -08:00
..
autoimport Improve staleness check error handling and optimization (bd-n4td, bd-o4qy, bd-c4rq) 2025-11-20 20:45:39 -05:00
beads Fix: Change default JSONL filename from beads.jsonl to issues.jsonl 2025-11-21 23:34:22 -08:00
compact Fix test compilation errors: add context.Background() to sqlite.New() calls 2025-11-21 14:57:18 -05:00
config Centralize BD_DEBUG logging into internal/debug package 2025-11-06 20:14:34 -08:00
configfile Fix: Change default JSONL filename from beads.jsonl to issues.jsonl 2025-11-21 23:34:22 -08:00
daemon Fix test compilation errors: add context.Background() to sqlite.New() calls 2025-11-21 14:57:18 -05:00
debug Centralize BD_DEBUG logging into internal/debug package 2025-11-06 20:14:34 -08:00
git Fix branchExists test after signature change 2025-11-02 20:30:31 -08:00
importer Fix test compilation errors: add context.Background() to sqlite.New() calls 2025-11-21 14:57:18 -05:00
lockfile Standardize daemon detection with tryDaemonLock probe (bd-wgu4) 2025-11-07 21:02:38 -08:00
merge Annotate gosec-safe file accesses 2025-11-17 10:12:46 -07:00
routing Fix TestRoutingIntegration and improve DetectUserRole robustness 2025-11-20 19:04:42 -05:00
rpc feat: Add label operations to bd update command 2025-11-21 22:17:26 -05:00
storage test: Tag 16 slow integration tests with build tags 2025-11-21 14:40:22 -05:00
syncbranch feat: Respect BEADS_SYNC_BRANCH environment variable 2025-11-22 18:17:19 -08:00
testutil Fix test compilation errors: add context.Background() to sqlite.New() calls 2025-11-21 14:57:18 -05:00
types feat: Add ancestor_id field and implement epic/child filtering 2025-11-05 00:44:41 -08:00
util Extract normalizeLabels to internal/util/strings.go 2025-11-06 20:00:08 -08:00
utils fix: improve ResolvePartialID / ResolveID handling for bd show (issue #336) 2025-11-19 05:54:28 -05:00
validation Refactor: Extract duplicated validation logic to internal/validation 2025-11-20 20:39:23 -05:00