Add project repository connection settings
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import type { GitRepositoryOptionModel } from '@/types/models/git-repository-option-model';
|
||||
|
||||
export type AvailableGitRepositorySourceModel = {
|
||||
user_git_connection_id: number;
|
||||
provider: string;
|
||||
provider_label: string;
|
||||
base_url: string;
|
||||
account_login: string;
|
||||
account_name: string | null;
|
||||
error: string | null;
|
||||
repositories: GitRepositoryOptionModel[];
|
||||
[key: string]: unknown;
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
export type GitRepositoryOptionModel = {
|
||||
provider_repository_id: string;
|
||||
owner_name: string;
|
||||
repository_name: string;
|
||||
full_name: string;
|
||||
repository_url: string;
|
||||
visibility_label: string;
|
||||
[key: string]: unknown;
|
||||
};
|
||||
@@ -0,0 +1,16 @@
|
||||
export type RepositoryConnectionModel = {
|
||||
id: number;
|
||||
project_id: number;
|
||||
provider: string;
|
||||
provider_label: string;
|
||||
base_url: string;
|
||||
provider_repository_id: string;
|
||||
owner_name: string;
|
||||
repository_name: string;
|
||||
repository_full_name: string;
|
||||
repository_url: string;
|
||||
has_personal_access: boolean;
|
||||
created_at: string | null;
|
||||
updated_at: string | null;
|
||||
[key: string]: unknown;
|
||||
};
|
||||
@@ -1,5 +1,7 @@
|
||||
import type { BoardColumnModel } from '@/types/models/board-column-model';
|
||||
import type { AvailableGitRepositorySourceModel } from '@/types/models/available-git-repository-source-model';
|
||||
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 { TicketLinkModel } from '@/types/models/ticket-link-model';
|
||||
@@ -75,6 +77,13 @@ export type ProjectTicketMetadataSettingsPageProps = {
|
||||
ticketTypes: TicketTypeModel[];
|
||||
};
|
||||
|
||||
export type ProjectRepositorySettingsPageProps = {
|
||||
availableRepositorySources: AvailableGitRepositorySourceModel[];
|
||||
project: ProjectModel;
|
||||
repositoryConnections: RepositoryConnectionModel[];
|
||||
status?: string | null;
|
||||
};
|
||||
|
||||
export type ProjectBacklogPageProps = {
|
||||
boardColumns: BoardColumnModel[];
|
||||
canCreateTickets: boolean;
|
||||
|
||||
Reference in New Issue
Block a user