diff --git a/internal/storage/sqlite/queries.go b/internal/storage/sqlite/queries.go index bf792d1d..6a55f5aa 100644 --- a/internal/storage/sqlite/queries.go +++ b/internal/storage/sqlite/queries.go @@ -163,10 +163,11 @@ func (s *SQLiteStorage) CreateIssue(ctx context.Context, issue *types.Issue, act return fmt.Errorf("failed to get config: %w", err) } - // Use IDPrefix override if set, otherwise use config prefix (bd-hobo) + // Use IDPrefix override if set, combined with config prefix (bd-hobo) + // e.g., configPrefix="bd" + IDPrefix="wisp" → "bd-wisp" prefix := configPrefix if issue.IDPrefix != "" { - prefix = issue.IDPrefix + prefix = configPrefix + "-" + issue.IDPrefix } // Generate or validate ID diff --git a/internal/storage/sqlite/transaction.go b/internal/storage/sqlite/transaction.go index 81fd72df..f854545e 100644 --- a/internal/storage/sqlite/transaction.go +++ b/internal/storage/sqlite/transaction.go @@ -147,10 +147,11 @@ func (t *sqliteTxStorage) CreateIssue(ctx context.Context, issue *types.Issue, a return fmt.Errorf("failed to get config: %w", err) } - // Use IDPrefix override if set, otherwise use config prefix (bd-hobo) + // Use IDPrefix override if set, combined with config prefix (bd-hobo) + // e.g., configPrefix="bd" + IDPrefix="wisp" → "bd-wisp" prefix := configPrefix if issue.IDPrefix != "" { - prefix = issue.IDPrefix + prefix = configPrefix + "-" + issue.IDPrefix } // Generate or validate ID