From 1e09b4444a3fdb9d00de0d371be80d3006b191c3 Mon Sep 17 00:00:00 2001 From: Viktor Vorona Date: Tue, 31 Oct 2023 16:50:46 +0100 Subject: [PATCH] SONAR-20640 Do not pass organization to import_github_project --- server/sonar-web/src/main/js/api/alm-integrations.ts | 1 - .../src/main/js/apps/create/project/CreateProjectPage.tsx | 1 - .../js/apps/create/project/Github/GitHubProjectCreate.tsx | 5 +---- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/server/sonar-web/src/main/js/api/alm-integrations.ts b/server/sonar-web/src/main/js/api/alm-integrations.ts index 9e25a3fdaa3..3377fb67096 100644 --- a/server/sonar-web/src/main/js/api/alm-integrations.ts +++ b/server/sonar-web/src/main/js/api/alm-integrations.ts @@ -201,7 +201,6 @@ export function setupGithubProjectCreation(data: { export function importGithubRepository(data: { almSetting: string; - organization: string; repositoryKey: string; newCodeDefinitionType?: string; newCodeDefinitionValue?: string; diff --git a/server/sonar-web/src/main/js/apps/create/project/CreateProjectPage.tsx b/server/sonar-web/src/main/js/apps/create/project/CreateProjectPage.tsx index e16595621d8..8cba39d66a7 100644 --- a/server/sonar-web/src/main/js/apps/create/project/CreateProjectPage.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/CreateProjectPage.tsx @@ -96,7 +96,6 @@ export type ImportProjectParam = creationMode: CreateProjectModes.GitHub; almSetting: string; projects: { - organization: string; repositoryKey: string; }[]; } diff --git a/server/sonar-web/src/main/js/apps/create/project/Github/GitHubProjectCreate.tsx b/server/sonar-web/src/main/js/apps/create/project/Github/GitHubProjectCreate.tsx index 0fec8dd39a0..fea3aff87a1 100644 --- a/server/sonar-web/src/main/js/apps/create/project/Github/GitHubProjectCreate.tsx +++ b/server/sonar-web/src/main/js/apps/create/project/Github/GitHubProjectCreate.tsx @@ -266,10 +266,7 @@ export default class GitHubProjectCreate extends React.Component { this.props.onProjectSetupDone({ almSetting: selectedAlmInstance.key, creationMode: CreateProjectModes.GitHub, - projects: repoKeys.map((repositoryKey) => ({ - repositoryKey, - organization: selectedOrganization.key, - })), + projects: repoKeys.map((repositoryKey) => ({ repositoryKey })), }); } }; -- 2.39.5