From 9f4bfa36ca0e3c5dd27fe6d386161e5f74c31028 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Wed, 23 Oct 2024 16:05:38 +0800 Subject: [PATCH] fix: onboard / configure connection's plugin name is fixed to GitHub --- config-ui/src/routes/onboard/step-2.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config-ui/src/routes/onboard/step-2.tsx b/config-ui/src/routes/onboard/step-2.tsx index 9460c6a47f1..d2ed2cf81d7 100644 --- a/config-ui/src/routes/onboard/step-2.tsx +++ b/config-ui/src/routes/onboard/step-2.tsx @@ -108,17 +108,23 @@ export const Step2 = () => { return null; } + const platformNames: Record = { + github: 'GitHub', + gitlab: 'GitLab', + azuredevops: 'Azure DevOps', + } + return ( <> - {['github', 'gitlab', 'azuredevops'].includes(plugin) && ( + {platformNames[plugin] && (
- Create a personal access token in GitHub. For self-managed {config.name}, please skip the onboarding + Create a personal access token in {platformNames[plugin]}. For self-managed {config.name}, please skip the onboarding and configure via Data Connections.

}