Add prefix validation on bulk import

- Detects prefix mismatches during import
- Shows warning with mismatched prefixes and counts
- Added --rename-on-import flag to automatically fix prefixes
- Auto-import is lenient about prefixes (doesn't enforce)
- All tests passing
This commit is contained in:
Steve Yegge
2025-10-21 20:34:37 -07:00
parent aba982f785
commit 3e44951f15
5 changed files with 178 additions and 19 deletions

View File

@@ -161,9 +161,10 @@ func importFromGit(ctx context.Context, store storage.Storage, jsonlPath string)
// Use existing import logic with auto-resolve collisions
opts := ImportOptions{
ResolveCollisions: true,
DryRun: false,
SkipUpdate: false,
ResolveCollisions: true,
DryRun: false,
SkipUpdate: false,
SkipPrefixValidation: true, // Auto-import is lenient about prefixes
}
_, err = importIssuesCore(ctx, dbPath, store, issues, opts)