Fix bd-28: Auto-import should update issues, not create duplicates
Changed ResolveCollisions from true to false in auto-import logic. This ensures git pull updates existing issues instead of creating duplicates.
This commit is contained in:
@@ -218,7 +218,7 @@ func (s *Server) checkAndAutoImportIfStale(req *Request) error {
|
|||||||
importFunc := func(ctx context.Context, issues []*types.Issue) (created, updated int, idMapping map[string]string, err error) {
|
importFunc := func(ctx context.Context, issues []*types.Issue) (created, updated int, idMapping map[string]string, err error) {
|
||||||
// Use the importer package to perform the actual import
|
// Use the importer package to perform the actual import
|
||||||
result, err := importer.ImportIssues(ctx, dbPath, store, issues, importer.Options{
|
result, err := importer.ImportIssues(ctx, dbPath, store, issues, importer.Options{
|
||||||
ResolveCollisions: true, // Auto-resolve collisions for auto-import
|
ResolveCollisions: false, // Do NOT resolve collisions - update existing issues by ID
|
||||||
RenameOnImport: true, // Auto-rename prefix mismatches
|
RenameOnImport: true, // Auto-rename prefix mismatches
|
||||||
// Note: SkipPrefixValidation is false by default, so we validate and rename
|
// Note: SkipPrefixValidation is false by default, so we validate and rename
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user