chore: remove issue ID references from comments and changelogs
Strip (bd-xxx), (gt-xxx) suffixes from code comments and changelog entries. The descriptions remain meaningful without the ephemeral issue IDs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -26,7 +26,7 @@ type localConfig struct {
|
||||
|
||||
// CheckDatabaseVersion checks the database version and migration status
|
||||
func CheckDatabaseVersion(path string, cliVersion string) DoctorCheck {
|
||||
// Follow redirect to resolve actual beads directory (bd-tvus fix)
|
||||
// Follow redirect to resolve actual beads directory
|
||||
beadsDir := resolveBeadsDir(filepath.Join(path, ".beads"))
|
||||
|
||||
// Check metadata.json first for custom database name
|
||||
@@ -54,7 +54,7 @@ func CheckDatabaseVersion(path string, cliVersion string) DoctorCheck {
|
||||
|
||||
if jsonlPath != "" {
|
||||
// JSONL exists but no database - check if this is no-db mode or fresh clone
|
||||
// Use proper YAML parsing to detect no-db mode (bd-r6k2)
|
||||
// Use proper YAML parsing to detect no-db mode
|
||||
if isNoDbModeConfigured(beadsDir) {
|
||||
return DoctorCheck{
|
||||
Name: "Database",
|
||||
@@ -136,7 +136,7 @@ func CheckDatabaseVersion(path string, cliVersion string) DoctorCheck {
|
||||
|
||||
// CheckSchemaCompatibility checks if all required tables and columns are present
|
||||
func CheckSchemaCompatibility(path string) DoctorCheck {
|
||||
// Follow redirect to resolve actual beads directory (bd-tvus fix)
|
||||
// Follow redirect to resolve actual beads directory
|
||||
beadsDir := resolveBeadsDir(filepath.Join(path, ".beads"))
|
||||
|
||||
// Check metadata.json first for custom database name
|
||||
@@ -157,7 +157,7 @@ func CheckSchemaCompatibility(path string) DoctorCheck {
|
||||
}
|
||||
}
|
||||
|
||||
// Open database (bd-ckvw: schema probe)
|
||||
// Open database for schema probe
|
||||
// Note: We can't use the global 'store' because doctor can check arbitrary paths
|
||||
db, err := sql.Open("sqlite3", sqliteConnString(dbPath, true))
|
||||
if err != nil {
|
||||
@@ -224,9 +224,9 @@ func CheckSchemaCompatibility(path string) DoctorCheck {
|
||||
}
|
||||
}
|
||||
|
||||
// CheckDatabaseIntegrity runs SQLite's PRAGMA integrity_check (bd-2au)
|
||||
// CheckDatabaseIntegrity runs SQLite's PRAGMA integrity_check
|
||||
func CheckDatabaseIntegrity(path string) DoctorCheck {
|
||||
// Follow redirect to resolve actual beads directory (bd-tvus fix)
|
||||
// Follow redirect to resolve actual beads directory
|
||||
beadsDir := resolveBeadsDir(filepath.Join(path, ".beads"))
|
||||
|
||||
// Get database path (same logic as CheckSchemaCompatibility)
|
||||
@@ -351,7 +351,7 @@ func CheckDatabaseIntegrity(path string) DoctorCheck {
|
||||
|
||||
// CheckDatabaseJSONLSync checks if database and JSONL are in sync
|
||||
func CheckDatabaseJSONLSync(path string) DoctorCheck {
|
||||
// Follow redirect to resolve actual beads directory (bd-tvus fix)
|
||||
// Follow redirect to resolve actual beads directory
|
||||
beadsDir := resolveBeadsDir(filepath.Join(path, ".beads"))
|
||||
|
||||
// Resolve database path (respects metadata.json override).
|
||||
@@ -706,7 +706,7 @@ func isNoDbModeConfigured(beadsDir string) bool {
|
||||
// irreversible. The user must make an explicit decision to delete their
|
||||
// closed issue history. We only provide guidance, never action.
|
||||
func CheckDatabaseSize(path string) DoctorCheck {
|
||||
// Follow redirect to resolve actual beads directory (bd-tvus fix)
|
||||
// Follow redirect to resolve actual beads directory
|
||||
beadsDir := resolveBeadsDir(filepath.Join(path, ".beads"))
|
||||
|
||||
// Get database path
|
||||
|
||||
@@ -11,8 +11,6 @@ import (
|
||||
|
||||
// DatabaseConfig auto-detects and fixes metadata.json database/JSONL config mismatches.
|
||||
// This fixes the issue where metadata.json gets recreated with wrong JSONL filename.
|
||||
//
|
||||
// bd-afd: bd doctor --fix should auto-fix metadata.json jsonl_export mismatch
|
||||
func DatabaseConfig(path string) error {
|
||||
if err := validateBeadsWorkspace(path); err != nil {
|
||||
return err
|
||||
@@ -81,7 +79,6 @@ func DatabaseConfig(path string) error {
|
||||
|
||||
// findActualJSONLFile scans .beads/ for the actual JSONL file in use.
|
||||
// Prefers issues.jsonl over beads.jsonl (canonical name), skips backups and merge artifacts.
|
||||
// bd-6xd: issues.jsonl is the canonical filename
|
||||
func findActualJSONLFile(beadsDir string) string {
|
||||
entries, err := os.ReadDir(beadsDir)
|
||||
if err != nil {
|
||||
@@ -125,7 +122,7 @@ func findActualJSONLFile(beadsDir string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
// bd-6xd: Prefer issues.jsonl over beads.jsonl (canonical name)
|
||||
// Prefer issues.jsonl over beads.jsonl (canonical name)
|
||||
for _, name := range candidates {
|
||||
if name == "issues.jsonl" {
|
||||
return name
|
||||
@@ -147,7 +144,6 @@ func isSystemJSONLFilename(name string) bool {
|
||||
|
||||
// LegacyJSONLConfig migrates from legacy beads.jsonl to canonical issues.jsonl.
|
||||
// This renames the file, updates metadata.json, and updates .gitattributes if present.
|
||||
// bd-6xd: issues.jsonl is the canonical filename
|
||||
func LegacyJSONLConfig(path string) error {
|
||||
if err := validateBeadsWorkspace(path); err != nil {
|
||||
return err
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
// DatabaseVersion fixes database version mismatches by running bd migrate,
|
||||
// or creates the database from JSONL by running bd init for fresh clones (bd-4h9).
|
||||
// or creates the database from JSONL by running bd init for fresh clones.
|
||||
func DatabaseVersion(path string) error {
|
||||
// Validate workspace
|
||||
if err := validateBeadsWorkspace(path); err != nil {
|
||||
@@ -23,7 +23,7 @@ func DatabaseVersion(path string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
// Check if database exists - if not, run init instead of migrate (bd-4h9)
|
||||
// Check if database exists - if not, run init instead of migrate
|
||||
beadsDir := filepath.Join(path, ".beads")
|
||||
dbPath := filepath.Join(beadsDir, beads.CanonicalDatabaseName)
|
||||
if cfg, err := configfile.Load(beadsDir); err == nil && cfg != nil && cfg.Database != "" {
|
||||
|
||||
@@ -46,8 +46,6 @@ func SyncBranchConfig(path string) error {
|
||||
// This handles two cases:
|
||||
// 1. Local sync branch diverged from remote (after force-push)
|
||||
// 2. Sync branch far behind main on source files
|
||||
//
|
||||
// bd-6rf: Detect and fix stale beads-sync branch
|
||||
func SyncBranchHealth(path, syncBranch string) error {
|
||||
if err := validateBeadsWorkspace(path); err != nil {
|
||||
return err
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
// UntrackedJSONL stages and commits untracked .beads/*.jsonl files.
|
||||
// This fixes the issue where bd cleanup -f creates deletions.jsonl but
|
||||
// leaves it untracked. (bd-pbj)
|
||||
// leaves it untracked.
|
||||
func UntrackedJSONL(path string) error {
|
||||
if err := validateBeadsWorkspace(path); err != nil {
|
||||
return err
|
||||
@@ -72,7 +72,7 @@ func UntrackedJSONL(path string) error {
|
||||
|
||||
// Commit only the JSONL files we staged (using --only to preserve other staged changes)
|
||||
// Use config-based author and signing options (GH#600)
|
||||
commitMsg := "chore(beads): commit untracked JSONL files\n\nAuto-committed by bd doctor --fix (bd-pbj)"
|
||||
commitMsg := "chore(beads): commit untracked JSONL files\n\nAuto-committed by bd doctor --fix"
|
||||
commitArgs := []string{"commit", "--only"}
|
||||
|
||||
// Add --author if configured
|
||||
|
||||
@@ -504,7 +504,6 @@ func CheckSyncBranchConfig(path string) DoctorCheck {
|
||||
|
||||
// CheckSyncBranchHealth detects when the sync branch has diverged from main
|
||||
// or from the remote sync branch (after a force-push reset).
|
||||
// bd-6rf: Detect and fix stale beads-sync branch
|
||||
func CheckSyncBranchHealth(path string) DoctorCheck {
|
||||
// Skip if not in a git repo using worktree-aware detection
|
||||
_, err := git.GetGitDir()
|
||||
|
||||
@@ -199,7 +199,6 @@ func CheckLegacyJSONLFilename(repoPath string) DoctorCheck {
|
||||
|
||||
// CheckLegacyJSONLConfig detects if metadata.json is configured to use the legacy
|
||||
// beads.jsonl filename and recommends migrating to the canonical issues.jsonl.
|
||||
// bd-6xd: issues.jsonl is the canonical filename
|
||||
func CheckLegacyJSONLConfig(repoPath string) DoctorCheck {
|
||||
beadsDir := filepath.Join(repoPath, ".beads")
|
||||
|
||||
@@ -235,7 +234,7 @@ func CheckLegacyJSONLConfig(repoPath string) DoctorCheck {
|
||||
Name: "JSONL Config",
|
||||
Status: "warning",
|
||||
Message: "Using legacy beads.jsonl filename",
|
||||
Detail: "The canonical filename is now issues.jsonl (bd-6xd).\n" +
|
||||
Detail: "The canonical filename is now issues.jsonl.\n" +
|
||||
" Legacy beads.jsonl is still supported but should be migrated.",
|
||||
Fix: "Run 'bd doctor --fix' to auto-migrate, or manually:\n" +
|
||||
" 1. git mv .beads/beads.jsonl .beads/issues.jsonl\n" +
|
||||
@@ -367,9 +366,8 @@ func CheckDatabaseConfig(repoPath string) DoctorCheck {
|
||||
|
||||
// CheckFreshClone detects if this is a fresh clone that needs 'bd init'.
|
||||
// A fresh clone has JSONL with issues but no database file.
|
||||
// bd-4ew: Recommend 'bd init --prefix <detected-prefix>' for fresh clones.
|
||||
func CheckFreshClone(repoPath string) DoctorCheck {
|
||||
// Follow redirect to resolve actual beads directory (bd-tvus fix)
|
||||
// Follow redirect to resolve actual beads directory
|
||||
beadsDir := resolveBeadsDir(filepath.Join(repoPath, ".beads"))
|
||||
|
||||
// Check if .beads/ exists
|
||||
|
||||
@@ -21,7 +21,7 @@ const DefaultCleanupAgeDays = 30
|
||||
// CheckStaleClosedIssues detects closed issues that could be cleaned up.
|
||||
// This consolidates the cleanup command into doctor checks.
|
||||
func CheckStaleClosedIssues(path string) DoctorCheck {
|
||||
// Follow redirect to resolve actual beads directory (bd-tvus fix)
|
||||
// Follow redirect to resolve actual beads directory
|
||||
beadsDir := resolveBeadsDir(filepath.Join(path, ".beads"))
|
||||
|
||||
// Check metadata.json first for custom database name
|
||||
@@ -100,7 +100,7 @@ func CheckStaleClosedIssues(path string) DoctorCheck {
|
||||
|
||||
// CheckExpiredTombstones detects tombstones that have exceeded their TTL.
|
||||
func CheckExpiredTombstones(path string) DoctorCheck {
|
||||
// Follow redirect to resolve actual beads directory (bd-tvus fix)
|
||||
// Follow redirect to resolve actual beads directory
|
||||
beadsDir := resolveBeadsDir(filepath.Join(path, ".beads"))
|
||||
jsonlPath := filepath.Join(beadsDir, "issues.jsonl")
|
||||
|
||||
@@ -160,7 +160,7 @@ func CheckExpiredTombstones(path string) DoctorCheck {
|
||||
}
|
||||
}
|
||||
|
||||
// CheckStaleMolecules detects complete-but-unclosed molecules (bd-6a5z).
|
||||
// CheckStaleMolecules detects complete-but-unclosed molecules.
|
||||
// A molecule is stale if all children are closed but the root is still open.
|
||||
func CheckStaleMolecules(path string) DoctorCheck {
|
||||
beadsDir := resolveBeadsDir(filepath.Join(path, ".beads"))
|
||||
@@ -243,7 +243,7 @@ func CheckStaleMolecules(path string) DoctorCheck {
|
||||
|
||||
// CheckCompactionCandidates detects issues eligible for compaction.
|
||||
func CheckCompactionCandidates(path string) DoctorCheck {
|
||||
// Follow redirect to resolve actual beads directory (bd-tvus fix)
|
||||
// Follow redirect to resolve actual beads directory
|
||||
beadsDir := resolveBeadsDir(filepath.Join(path, ".beads"))
|
||||
|
||||
// Check metadata.json first for custom database name
|
||||
|
||||
@@ -97,7 +97,6 @@ func RunPerformanceDiagnostics(path string) {
|
||||
}
|
||||
|
||||
// CollectPlatformInfo gathers platform information for diagnostics.
|
||||
// bd-9cc: Exported for use by --output flag.
|
||||
func CollectPlatformInfo(path string) map[string]string {
|
||||
info := make(map[string]string)
|
||||
|
||||
@@ -108,7 +107,7 @@ func CollectPlatformInfo(path string) map[string]string {
|
||||
info["go_version"] = runtime.Version()
|
||||
|
||||
// SQLite version - try to find database
|
||||
// Follow redirect to resolve actual beads directory (bd-tvus fix)
|
||||
// Follow redirect to resolve actual beads directory
|
||||
beadsDir := resolveBeadsDir(filepath.Join(path, ".beads"))
|
||||
dbPath := filepath.Join(beadsDir, beads.CanonicalDatabaseName)
|
||||
db, err := sql.Open("sqlite3", "file:"+dbPath+"?mode=ro")
|
||||
|
||||
Reference in New Issue
Block a user