Fix: Change default JSONL filename from beads.jsonl to issues.jsonl
The canonical beads database name is issues.jsonl. Tens of thousands of users have issues.jsonl, and beads.jsonl was only used by the Beads project itself due to git history pollution. Changes: - Updated bd doctor to warn about beads.jsonl instead of issues.jsonl - Changed default config from beads.jsonl to issues.jsonl - Reversed precedence in checkGitForIssues to prefer issues.jsonl - Updated git merge driver config to use issues.jsonl - Updated all tests to expect issues.jsonl as the default issues.jsonl is now the canonical default; beads.jsonl is legacy 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -33,7 +33,7 @@ func setupTestStore(t *testing.T, dbPath string) *sqlite.SQLiteStorage {
|
||||
func TestDBNeedsExport_InSync(t *testing.T) {
|
||||
tmpDir := t.TempDir()
|
||||
dbPath := filepath.Join(tmpDir, "beads.db")
|
||||
jsonlPath := filepath.Join(tmpDir, "beads.jsonl")
|
||||
jsonlPath := filepath.Join(tmpDir, "issues.jsonl")
|
||||
|
||||
store := setupTestStore(t, dbPath)
|
||||
defer store.Close()
|
||||
@@ -81,7 +81,7 @@ func TestDBNeedsExport_InSync(t *testing.T) {
|
||||
func TestDBNeedsExport_DBNewer(t *testing.T) {
|
||||
tmpDir := t.TempDir()
|
||||
dbPath := filepath.Join(tmpDir, "beads.db")
|
||||
jsonlPath := filepath.Join(tmpDir, "beads.jsonl")
|
||||
jsonlPath := filepath.Join(tmpDir, "issues.jsonl")
|
||||
|
||||
store := setupTestStore(t, dbPath)
|
||||
defer store.Close()
|
||||
@@ -132,7 +132,7 @@ func TestDBNeedsExport_DBNewer(t *testing.T) {
|
||||
func TestDBNeedsExport_CountMismatch(t *testing.T) {
|
||||
tmpDir := t.TempDir()
|
||||
dbPath := filepath.Join(tmpDir, "beads.db")
|
||||
jsonlPath := filepath.Join(tmpDir, "beads.jsonl")
|
||||
jsonlPath := filepath.Join(tmpDir, "issues.jsonl")
|
||||
|
||||
store := setupTestStore(t, dbPath)
|
||||
defer store.Close()
|
||||
@@ -189,7 +189,7 @@ func TestDBNeedsExport_CountMismatch(t *testing.T) {
|
||||
func TestDBNeedsExport_NoJSONL(t *testing.T) {
|
||||
tmpDir := t.TempDir()
|
||||
dbPath := filepath.Join(tmpDir, "beads.db")
|
||||
jsonlPath := filepath.Join(tmpDir, "beads.jsonl")
|
||||
jsonlPath := filepath.Join(tmpDir, "issues.jsonl")
|
||||
|
||||
store := setupTestStore(t, dbPath)
|
||||
defer store.Close()
|
||||
|
||||
Reference in New Issue
Block a user