Julian Knutsen
e5aea04fa1
fix(done): get issue ID from agent hook and detect integration branches ( #411 ) ( #453 )
...
Branch names like "polecat/furiosa-mkb0vq9f" don't contain the actual
issue ID, causing gt done to incorrectly parse "furiosa-mkb0vq9f" as the
issue. This broke integration branch auto-detection since the wrong issue
was used for parent epic lookup.
Changes:
- After parsing branch name, check the agent's hook_bead field which
contains the actual issue ID (e.g., "gt-845.1")
- Fix parseBranchName to not extract fake issue IDs from modern polecat branches
- Fix detectIntegrationBranch to traverse full parent chain (molecule → bug → epic)
- Include issue ID in polecat branch names when HookBead is set
Added tests covering:
- Agent hook returns correct issue ID
- Modern polecat branch format parsing
- Integration branch detection through parent chain
Fixes #411
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-16 11:40:18 -08:00
..
2026-01-07 21:41:51 -08:00
2026-01-07 21:41:51 -08:00
2026-01-11 23:03:47 -08:00
2026-01-12 01:45:26 -08:00
2026-01-13 13:40:57 -08:00
2026-01-13 13:14:47 -08:00
2026-01-13 13:14:47 -08:00
2026-01-15 17:44:40 -08:00
2026-01-13 19:34:29 -08:00
2026-01-13 19:34:29 -08:00
2026-01-13 19:34:29 -08:00
2026-01-13 00:03:02 -08:00
2026-01-07 19:17:28 -08:00
2026-01-13 12:07:50 -08:00
2026-01-16 10:59:42 -08:00
2026-01-08 20:25:01 -08:00
2026-01-13 22:13:57 -08:00
2026-01-08 12:36:54 -05:00
2026-01-09 21:24:23 -08:00
2026-01-09 02:22:36 +13:00
2026-01-09 02:22:20 +13:00
2026-01-12 23:07:49 -08:00
2026-01-12 00:35:40 -08:00
2026-01-13 22:34:03 -08:00
2026-01-08 20:25:01 -08:00
2026-01-16 10:59:12 -08:00
2026-01-12 17:40:04 -08:00
2026-01-16 11:40:18 -08:00
2026-01-16 11:40:18 -08:00
2026-01-10 22:56:33 -08:00
2026-01-13 22:07:05 -08:00
2026-01-08 20:25:01 -08:00
2026-01-16 11:05:59 -08:00
2026-01-16 11:05:59 -08:00
2026-01-12 02:45:03 -08:00
2026-01-12 02:31:06 -08:00
2026-01-09 23:24:28 -08:00
2026-01-09 14:11:53 -08:00
2026-01-13 13:39:55 -08:00
2026-01-09 22:46:06 -08:00
2026-01-13 13:40:57 -08:00
2026-01-08 22:10:40 +13:00
2026-01-09 18:14:17 -08:00
2026-01-09 13:30:11 -08:00
2026-01-11 18:45:24 -08:00
2026-01-13 13:19:15 -08:00
2026-01-09 23:01:55 -08:00
2026-01-14 21:22:00 -08:00
2026-01-09 23:01:55 -08:00
2026-01-14 21:18:20 -08:00
2026-01-14 21:18:20 -08:00
2026-01-09 23:01:55 -08:00
2026-01-13 13:45:25 -08:00
2026-01-14 21:29:37 -08:00
2026-01-09 23:01:55 -08:00
2026-01-14 21:19:54 -08:00
2026-01-14 21:25:11 -08:00
2026-01-09 23:01:55 -08:00
2026-01-14 21:25:11 -08:00
2026-01-13 22:13:57 -08:00
2026-01-13 13:40:57 -08:00
2026-01-09 22:10:09 -08:00
2026-01-09 00:41:35 -08:00
2026-01-12 23:48:56 -08:00
2026-01-16 11:40:18 -08:00
2026-01-16 11:40:18 -08:00
2026-01-09 00:41:35 -08:00
2026-01-13 13:32:13 -08:00
2026-01-12 16:42:33 -08:00
2026-01-08 22:10:40 +13:00
2026-01-10 00:25:59 -08:00
2026-01-13 13:37:00 -08:00
2026-01-13 13:37:00 -08:00
2026-01-15 17:40:28 -08:00
2026-01-11 18:37:01 -08:00
2026-01-12 23:07:49 -08:00
2026-01-10 18:28:14 -08:00
2026-01-10 18:28:14 -08:00
2026-01-12 23:07:49 -08:00
2026-01-12 23:07:49 -08:00
2026-01-13 20:59:15 -08:00
2026-01-13 20:59:15 -08:00
2026-01-13 03:24:42 -08:00
2026-01-13 13:14:47 -08:00
2026-01-13 13:14:47 -08:00
2026-01-08 20:25:01 -08:00
2026-01-12 01:45:26 -08:00
2026-01-12 17:44:37 -08:00
2026-01-08 20:25:01 -08:00
2026-01-13 13:37:00 -08:00
2026-01-09 21:52:09 -08:00
2026-01-13 22:13:57 -08:00
2026-01-11 18:06:09 -08:00
2026-01-12 01:45:26 -08:00
2026-01-08 22:10:40 +13:00
2026-01-08 20:25:01 -08:00
2026-01-15 19:19:13 -08:00
2026-01-13 14:01:49 +01:00
2026-01-13 13:19:15 -08:00
2026-01-12 03:11:59 -08:00
2026-01-12 03:11:59 -08:00
2026-01-13 14:01:49 +01:00
2026-01-12 03:11:59 -08:00
2026-01-13 22:13:35 -08:00
2026-01-13 22:07:05 -08:00
2026-01-12 03:10:58 -08:00
2026-01-13 13:37:00 -08:00
2026-01-12 02:38:39 -08:00
2026-01-13 13:37:00 -08:00
2026-01-08 12:36:54 -05:00
2026-01-09 22:46:06 -08:00
2026-01-13 19:34:29 -08:00
2026-01-08 20:25:01 -08:00
2026-01-11 22:23:21 -08:00
2026-01-13 13:46:50 -08:00
2026-01-13 13:46:50 -08:00
2026-01-12 03:18:47 -08:00
2026-01-09 21:56:53 -08:00
2026-01-10 23:18:39 -08:00