diff --git a/internal/storage/sqlite/sqlite.go b/internal/storage/sqlite/sqlite.go index 54bb9e37..02c88561 100644 --- a/internal/storage/sqlite/sqlite.go +++ b/internal/storage/sqlite/sqlite.go @@ -543,8 +543,15 @@ func (s *SQLiteStorage) UpdateIssue(ctx context.Context, id string, updates map[ if value == nil { updatedIssue.ExternalRef = nil } else { - str := value.(string) - updatedIssue.ExternalRef = &str + // Handle both string and *string + switch v := value.(type) { + case string: + updatedIssue.ExternalRef = &v + case *string: + updatedIssue.ExternalRef = v + default: + return fmt.Errorf("external_ref must be string or *string, got %T", value) + } } } }