Steve Yegge
048522c41a
Add prefix validation to prevent wrong-database issue creation
Closes bd-156 (originally bd-151, remapped during auto-import)
Validates that explicit --id prefix matches database prefix from config.
Prevents accidental creation of issues with wrong prefix (e.g., creating
'bd-118' in a database configured for 'vc-' prefix).
Features:
- Checks issue_prefix from config table when --id is provided
- Fails with helpful error message showing the mismatch
- Suggests correct prefix format
- Adds --force flag to override validation if intentional
- Only validates in direct mode (daemon needs RPC enhancement)
Example: bd create 'Test' --id vc-99 # Error: prefix mismatch, use bd-99
bd create 'Test' --id vc-99 --force # OK, forced override
Amp-Thread-ID: https://ampcode.com/threads/T-4e1ac6f1-7465-442a-a385-adaa98b539ad
Co-authored-by: Amp <amp@ampcode.com>
2025-10-17 22:20:18 -07:00
..
2025-10-17 11:24:39 -07:00
2025-10-16 17:44:58 -07:00
2025-10-16 20:50:40 -07:00
2025-10-17 00:03:54 -07:00
2025-10-17 15:16:08 -07:00
2025-10-17 22:06:21 -07:00
2025-10-17 15:17:01 -07:00
2025-10-17 13:50:20 -07:00
2025-10-17 17:40:16 -07:00
2025-10-15 20:09:24 -07:00
2025-10-17 00:09:26 -07:00
2025-10-17 11:24:39 -07:00
2025-10-15 17:51:09 -07:00
2025-10-15 23:38:47 -07:00
2025-10-17 21:56:03 -07:00
2025-10-16 00:49:41 -07:00
2025-10-17 22:20:18 -07:00
2025-10-15 23:38:47 -07:00
2025-10-17 01:15:39 -07:00
2025-10-17 15:17:17 -07:00
2025-10-16 17:05:27 -07:00
2025-10-16 21:29:20 -07:00
2025-10-16 21:21:17 -07:00
2025-10-16 21:51:35 -07:00
2025-10-15 17:06:59 -07:00
2025-10-16 18:06:53 -07:00
2025-10-16 17:11:54 -07:00
2025-10-16 12:43:43 -07:00
2025-10-17 18:15:29 -07:00