Add ticket branch discovery by ticket key

This commit is contained in:
2026-03-26 09:16:17 +01:00
parent fee14d93a7
commit 0b95477f4e
12 changed files with 475 additions and 0 deletions
@@ -0,0 +1,4 @@
export type TicketBranchModel = {
name: string;
[key: string]: unknown;
};
@@ -0,0 +1,9 @@
import type { RepositoryConnectionModel } from '@/types/models/repository-connection-model';
import type { TicketBranchModel } from '@/types/models/ticket-branch-model';
export type TicketRepositoryBranchModel = {
branches: TicketBranchModel[];
error: string | null;
repository_connection: RepositoryConnectionModel;
[key: string]: unknown;
};
+2
View File
@@ -4,6 +4,7 @@ import type { ProjectModel } from '@/types/models/project-model';
import type { RepositoryConnectionModel } from '@/types/models/repository-connection-model';
import type { TeamModel } from '@/types/models/team-model';
import type { TicketFieldDefinitionModel } from '@/types/models/ticket-field-definition-model';
import type { TicketRepositoryBranchModel } from '@/types/models/ticket-repository-branch-model';
import type { TicketLinkModel } from '@/types/models/ticket-link-model';
import type { TicketLinkTypeModel } from '@/types/models/ticket-link-type-model';
import type { TicketReferenceModel } from '@/types/models/ticket-reference-model';
@@ -101,6 +102,7 @@ export type ProjectTicketPageProps = {
linkedTickets: TicketLinkModel[];
parentTicketOptions: TicketReferenceModel[];
project: ProjectModel;
repositoryBranches: TicketRepositoryBranchModel[];
status?: string | null;
ticket: TicketModel;
ticketFieldDefinitions: TicketFieldDefinitionModel[];