Expose suggested branch name in ticket responses
linter / quality (pull_request) Successful in 1m23s
tests / ci (8.4) (pull_request) Successful in 1m40s

This commit is contained in:
2026-05-24 20:50:09 +00:00
parent cf63240833
commit d4b0b90502
3 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -65,6 +65,7 @@ class TicketApiTest extends TestCase
->assertCreated()
->assertJsonPath('data.ticket_key', 'CORE-1')
->assertJsonPath('data.acceptance_criteria.1.indent', 1)
->assertJsonPath('data.suggested_branch_name', 'core-1-api-ticket')
->assertJsonPath('meta.message', 'CORE-1 was created.');
$ticket = Ticket::query()->findOrFail($createResponse->json('data.id'));
@@ -101,7 +102,9 @@ class TicketApiTest extends TestCase
->getJson(route('api.projects.tickets.show', [$project, $ticket]))
->assertOk()
->assertJsonPath('data.ticket.ticket_key', 'CORE-1')
->assertJsonPath('data.ticket.story_points', 5);
->assertJsonPath('data.ticket.story_points', 5)
->assertJsonPath('data.ticket.suggested_branch_name', 'core-1-updated-api-ticket')
->assertJsonPath('data.suggestedBranchName', 'core-1-updated-api-ticket');
}
public function test_ticket_update_hides_author_for_non_admins_when_author_visibility_is_disabled(): void
+1
View File
@@ -203,6 +203,7 @@ class KanbanGitMcpTest extends TestCase
->where('data.project.name', 'Core project')
->where('data.ticket.ticket_key', 'CORE-1')
->where('data.ticket.description', 'Detailed MCP description')
->where('data.ticket.suggested_branch_name', 'core-1-detailed-ticket')
->etc());
}